Allow defining values and labels in List props
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3537620. --> Reported by: [mred9](https://www.drupal.org/user/3637602) Related to !243 >>> <p>Currently, in the code editor, when defining props of type string or integer with a list of options (enum), the UI only allows entering values. There is no way to define labels for those values, which are necessary for providing human-readable, translatable options in the Experience Builder UI.</p> <p>This issue proposes updating the Props tab in the code editor so that component authors can define both a value and a label for each option. This will support the meta:enum schema format introduced in Issue #3516602, which allows labels to be defined alongside enum values.</p> <p>While working on this I found the following bug <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-1"><a href="https://www.drupal.org/project/canvas/issues/3553361" title="Status: Active">#3553361: Once a code component prop has been set to Formatted Text it gets "stuck"</a></span> - to be addressed in a follow up</p> > Related issue: [Issue #3516602](https://www.drupal.org/node/3516602)
issue