SilverWare\Navigation\Components\ButtonNavigation
An extension of the base component class for button navigation.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class ButtonNavigation
extends BaseComponent
{
- // members
- private static string $singular_name = 'Button Navigation';
- private static string $plural_name = 'Button Navigation';
- private static string $description = 'A component to show navigation as a series of buttons';
- private static string $icon = 'silverware/navigation: admin/client/dist/images/icons/ButtonNavigation.png';
- private static string $table_name = 'SilverWare_ButtonNavigation';
- private static string $default_child = Button::class;
- private static array $db = ;
- private static array $defaults = ;
- private static array|string $allowed_children = ;
- private static array $extensions = ;
- // methods
- public FieldList getCMSFields()
- public array fieldLabels()
- public array getWrapperClassNames()
- public array getListClassNames()
- public string getCustomCSSPrefix()
- public DataList getButtons()
- public ArrayList getEnabledButtons()
Hierarchy
Extends
- SilverWare\Components\BaseComponent
Members
private
- $allowed_children
—
SilverWare\Navigation\Components\array|string
Defines the allowed children for this object. - $db
—
array
Maps field names to field types for this object. - $default_child
—
string
Defines the default child class for this object. - $defaults
—
array
Defines the default values for the fields of this object. - $description
—
string
Description of this object. - $extensions
—
array
Defines the extension classes to apply to this object. - $icon
—
string
Icon file for this object. - $plural_name
—
string
Human-readable plural name. - $singular_name
—
string
Human-readable singular name. - $table_name
—
string
Defines the table name to use for this object.
Methods
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getButtons() — Answers a list of all buttons within the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getCustomCSSPrefix() — Answers the CSS prefix used for the custom CSS template.
- getEnabledButtons() — Answers a list of the enabled buttons within the receiver.
- getListClassNames() — Answers an array of list class names for the HTML template.
- getWrapperClassNames() — Answers an array of wrapper class names for the HTML template.