Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.48 KB

File metadata and controls

50 lines (29 loc) · 1.48 KB

Bootstrap Collection family


go back to Table of contents

Description

Bootstral collection provides two form types:

  • s2a_collection_table
  • s2a_collection_fieldset

Both equal in configuration and purpose, only with diffrent GUI.

Options

sortable

type: bool, default: false

If true, enables UI sortable feature, allowing user to reorder items with drag&drop. The position will be stored in a hidden input for field defined in sortable_field. The position is an incremental integer key, starting with 1 for the first item.

Note: it is the developers job to that field for sortable behaviour. Though we can recommend Gedmo\Sortable behaviour for Doctrine ORM. For more details see StofDoctrineExtensionsBundle.

sortable_field

type: string, default: position

If sortable is enabled, this option is used to specify the field, which should hold sortable position.

new_label

type: string, default: s2a_collection.new_label

New item label.

fieldset_class

type: string, default: col-md-4

Class added to fieldset. Allows to control fieldset size via bootstrap column classes.