Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] EnhancedChoiceType #3456

Copy link
Copy link
Closed
Closed
Copy link
@pulzarraider

Description

@pulzarraider
Issue body actions

Now Form's ChoiceType accept only key=>value array and can render only simple list of choices without any parameters or additional informations.

It would be great if there will be EnhancedChoiceType which will accept more complicated array of values (key, label, custom attributes, level etc.).

EnhancedChoiceType will be used to render:

  • nested choices (tree of choices):
radioButton_A
    radioButtonChild_A_1
    radioButtonChild_A_2
    radioButtonChild_A_3
radioButton_B
    radioButtonChild_B_1
    radioButtonChild_B_2
...
  • choices with attributes:
<option rel="auto" disabled="disabled">aaaaa</option>
<option rel="moto">bbbbb</option>
<option rel="moto" data-id="123">ccccc</option>
...
<input type="radio" ... disabled="disabled" data-id="123">

This issue is reopening #2754 as I think forms should deal with this by default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.