Problem/Motivation

The textfield widget is currently just supporting string and identifier prop types. We should allow slot as well so you can use that for simple markup that needs to go into a slot like a button link component.

There is only Token available that provides a simple text field so let's make the pure text field available for slots as well.

Proposed resolution

Adding slot to supported prop types for TextfieldWidget

Command icon 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

yannickoo created an issue. See original summary.

yannickoo’s picture

Issue tags: +Vienna2025

yannickoo’s picture

Status: Active » Needs review
pdureau’s picture

Assigned: Unassigned » just_like_good_vibes

Let's check if removing "widget" is enough.

just_like_good_vibes’s picture

Title: Allow TextfieldWidget for "slot" prop type » [2.0.11] Allow TextfieldWidget for "slot" prop type
just_like_good_vibes’s picture

Assigned: just_like_good_vibes » Unassigned
Status: Needs review » Reviewed & tested by the community
just_like_good_vibes’s picture

i have updated the source, to do it the proper way. the textfield source was already compatible and available for splots, except that is was tagged as widget:dismissible which was the reason why it did not appear for splot. i removed that tag and now it appears.

just_like_good_vibes’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.