class ToolbarButton

Toolbar Button definition

Properties

string $name
string $type
$label
$context
$permission
$disabled
mixed|string|null $cssClass
array $config
protected $menuItems

Methods

__construct($name)

Constructor.

$this
displayAs(string $type, $config)

Specifies a Toolbar button rendering mode. Supported modes are:

  • text - text column, aligned left
  • number - numeric column, aligned right

array|string
getAttributes(bool $htmlBuild = true)

Returns the attributes for this item.

menuItems($value = null)

No description

evalConfig($config)

No description

Details

at line 47
__construct($name)

Constructor.

Parameters

$name

at line 62
$this displayAs(string $type, $config)

Specifies a Toolbar button rendering mode. Supported modes are:

  • text - text column, aligned left
  • number - numeric column, aligned right

Parameters

string $type

Specifies a render mode as described above

$config

Return Value

$this

at line 78
array|string getAttributes(bool $htmlBuild = true)

Returns the attributes for this item.

*

Parameters

bool $htmlBuild

Return Value

array|string

at line 101
menuItems($value = null)

No description

Parameters

$value

at line 113
protected evalConfig($config)

No description

Parameters

$config