- Issue created by @omarlopesino
- Merge request !13Draft: Today I was reminded by myself that #element_validate was a thing and I could... → (Open) created by omarlopesino
- 🇪🇸Spain omarlopesino
Working on it, see the attached MR. I will go back on this tomorrow to review if it is possible to add a different form element type for each property type.
- 🇨🇷Costa Rica alemadlei
Question,
Was this stated somewhere on the original SDC definition?
I mean, I think it is indeed possible, but working on SDC so far, when this happens I prefer to use slots to have components in components.
Hello Alejandro,
First of all thanks for your work on this module, we already implemented it on several projects and planning to make it a must-have on our stack.
Im thinking about a component with multiple links, where you want to trigger SDC prop validation to make it easier for content editors.
props: type: object properties: links: title: Links type: array items: type: object properties: url: title: Url type: string format: uri title: title: Text type: string classes: title: Text type: string enum: - btn-primary - btn-secondary - btn-link
According to https://www.drupal.org/docs/develop/theming-drupal/using-single-director... → its allowed a prop of
type: array