- Issue created by @goz
- Merge request !384Issue #3525803: Allow to use textfield source widget as slot prop type → (Open) created by goz
- 🇫🇷France pdureau Paris
hi Goz,
I use "Token" source usually to achieve that, without putting a token as value of course. Maybe we can rename "Token" source as "String" knowing there is a token processor running on its value?
- 🇫🇷France goz
Nice, it works !
Agreed to rename token source, but replacing Token by String, we are missing the "token" feature.
May be something with both ?
"String and token" ? - 🇫🇷France pdureau Paris
"String and token" may be too long. But I don't have a better proposal.
- 🇫🇷France just_like_good_vibes PARIS
we could mention the token capabilities in the description and keep string as source name.
but, be careful, tokens can return renderables, yes they are like UFOs right? so string may not be accurate.
let’s check that, maybe i am wrong - 🇫🇷France pdureau Paris
but, be careful, tokens can return renderables, yes they are like UFOs right? so string may not be accurate.
let’s check that, maybe i am wrongVery interesting! If tokens can returns renderables, that mean the current list of prop types is wrong:
prop_types: ['slot', 'string', 'url'],
https://git.drupalcode.org/project/ui_patterns/-/blob/2.0.x/src/Plugin/U...
- 🇫🇷France just_like_good_vibes PARIS
i need to check what is returned carefully…