Skip to content

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

License

Notifications You must be signed in to change notification settings

lutsen/template-optionselect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages