[beta1] Props must be settings instead of fields

Created on 14 March 2023, over 1 year ago
Updated 26 November 2023, 12 months ago

Problem/Motivation

Some definitions:

  • slots are free renderables (render array, renderable objects, scalars, list of renderables...), which allows them to be mapped to regions of a layout, to rows and areas of a view, to groups of a field group...
  • props are controlled values (boolean, enums, tokens...), they are used in the template for HTML attribute values, for conditions, or some calculations...

It is good practice in the UI Suite community to set slots as fields and props as settings, and it works better with Layout Builder like that.

Proposed resolution

Can be done now

button:

  • url must be an url setting

Chip

  • add url as an url setting ???

Floating action button

  • add url as an url setting

Icon Button:

  • url must be an url setting

Slider;

  • Value must be a number setting
  • Value end must be a number setting
  • Minimum must be a number setting
  • Maximum must be a number setting
  • Machine name must be a token setting

Must wait Add links setting type Needs review

Breadcrumb

  • items must be a menu setting

List

  • items must be a menu setting

List group

  • items must be a menu setting

Menu

  • items must be a menu setting

Navigation drawer

  • items must be a menu setting

Pagination: ???

API changes

Yes, on the site building side.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024