lagan/template-optionselect

Template to use a fixed array of options with the Lagan String property.

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

Type:lagan-template

v1.0.0 2017-10-04 19:41 UTC

This package is not auto-updated.

Last update: 2020-08-08 05:32:30 UTC


README

Lagan

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.