SilverWare\IconSetField\Forms\IconSetField
An extension of the multi-select field class for an icon set field.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class IconSetField
extends MultiSelectField
{
- // members
- private static string $column_class_small = 'col-sm-%d';
- private static string $column_class_large = 'col-lg-%d';
- protected $maxHeight;
- protected integer $smallWidth = 6;
- protected integer $largeWidth = 4;
- // methods
- public $this setMaxHeight()
- public integer getMaxHeight()
- public $this setSmallWidth()
- public integer getSmallWidth()
- public $this setLargeWidth()
- public integer getLargeWidth()
- public string Type()
- public DBHTMLText Field()
- public array getAttributes()
- public ArrayList getOptions()
- public boolean hasOptions()
- public IconSetField_Readonly performReadonlyTransformation()
Hierarchy
Extends
- SilverStripe\Forms\MultiSelectField
Members
private
- $column_class_large
—
string
Defines the class name to use for large columns. - $column_class_small
—
string
Defines the class name to use for small columns.
protected
- $largeWidth
—
integer
Defines the column width of items for large devices. - $maxHeight
—
integer
Defines the maximum height of the field. - $smallWidth
—
integer
Defines the column width of items for small devices.
Methods
public
- Field() — Renders the field for the template.
- Type() — Answers the field type for the template.
- getAttributes() — Answers an array of HTML tag attributes for the object.
- getLargeWidth() — Answers the value of the largeWidth attribute.
- getMaxHeight() — Answers the value of the maxHeight attribute.
- getOptions() — Answers an array list containing the options for the field.
- getSmallWidth() — Answers the value of the smallWidth attribute.
- hasOptions() — Answers true if the field has at least one option.
- performReadonlyTransformation() — Answers a readonly copy of the receiver.
- setLargeWidth() — Defines the value of the largeWidth attribute.
- setMaxHeight() — Defines the value of the maxHeight attribute.
- setSmallWidth() — Defines the value of the smallWidth attribute.