Problem/Motivation
In some case, when i build a component, i want to define "static" string value in a slot.
I don't have textfield widget for a slot, the only thing closed is wysiwyg, but i don't want wysiwyg, only a string value.
Steps to reproduce
From UI, create a component, and try to add a string value to a slot.
Proposed resolution
Add textfield available for slot prop types.
Issue fork ui_patterns-3525803
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
pdureau commentedhi 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?
Comment #4
goz commentedNice, 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" ?
Comment #5
pdureau commented"String and token" may be too long. But I don't have a better proposal.
Comment #6
just_like_good_vibeswe 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
Comment #7
pdureau commentedVery interesting! If tokens can returns renderables, that mean the current list of prop types is wrong:
https://git.drupalcode.org/project/ui_patterns/-/blob/2.0.x/src/Plugin/U...
Comment #8
just_like_good_vibesi need to check what is returned carefully…
Comment #9
just_like_good_vibes