iliain / userform-columns
Duplicates the Userform Field Group feature to allow adding columns to forms
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:silverstripe-vendormodule
Requires
- silverstripe/userforms: ^5 || ^6
This package is auto-updated.
Last update: 2024-12-17 01:34:55 UTC
README
Duplicates the Userform Field Group feature to allow adding rows & columns to forms
Installation (with composer)
$ composer require iliain/userform-columns
Requirements
Silverstripe Userforms 5+ or 6+
Config
Customise the dropdown options for column classes via yaml:
Iliain\UserformColumns\FormFields\EditableColumnStartField: css_classes: 'col-12': 'Full width' 'col-6': 'Half width' 'col-4': 'Third width' 'col-3': 'Quarter width'
You can also set the default classes for a row via yaml, or override the template:
Iliain\UserformColumns\FormFields\EditableRowStartField: default_classes: 'flex flex-row w-full gap-2'