iliain/userform-columns

There is no license information available for the latest version (2.0.0) of this package.

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

2.0.0 2024-10-17 01:10 UTC

This package is auto-updated.

Last update: 2024-12-17 01:34:55 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

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'