lagan/template-optionselect
Template to use a fixed array of options with the Lagan String property.
Maintainers
Package info
github.com/lutsen/template-optionselect
Language:HTML
Type:lagan-template
pkg:composer/lagan/template-optionselect
v1.0.0
2017-10-04 19:41 UTC
Requires
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT d0074b3b38758a94b6322d95d2937057c3aa1a3b
- Lútsen Stellingwerff <lutsenstellingwerff.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-29 01:27:04 UTC
README
Lagan Properties Optionselect Template
Admin template to use a fixed array of options with the Lagan String property. You define options in the properties of a model like this:
'options' => [ 'option_a' => [ 'name' => 'Option A' ], 'option_b' => [ 'name' => 'Option B' ] ]
You can set the validation rule in the String property like this:
'validate' => 'inlist({"list": {"0":"option_a", "1":"option_b"}})'
To be used with Lagan. Lagan lets you create flexible content objects with a simple class, and manage them with a web interface.
Lagan is a project of Lútsen Stellingwerff.
