PHP Trait Ublaboo\DataGrid\Traits\TButton

Show file Open project: ublaboo/datagrid

Protected Properties

Property Type Description
$class string
$icon string | callable
$text string
$title string | callable

Public Methods

Method Description
getClass ( ) : string Get attribute class
getIcon ( ) : string Get icon
getText ( ) : string Get text
getTitle ( ) : string Get attribute title
setClass ( string $class ) Set attribute class
setIcon ( string $icon ) Set icon
setText ( string $text ) Set text
setTitle ( string $title ) Set attribute title
tryAddIcon ( Nette\Utils\Html $el, string | null $icon, string $name ) : void Should the element has an icon?

Method Details

getClass() public method

Get attribute class
public getClass ( ) : string
return string

getIcon() public method

Get icon
public getIcon ( ) : string
return string

getText() public method

Get text
public getText ( ) : string
return string

getTitle() public method

Get attribute title
public getTitle ( ) : string
return string

setClass() public method

Set attribute class
public setClass ( string $class )
$class string

setIcon() public method

Set icon
public setIcon ( string $icon )
$icon string

setText() public method

Set text
public setText ( string $text )
$text string

setTitle() public method

Set attribute title
public setTitle ( string $title )
$title string

tryAddIcon() public method

Should the element has an icon?
public tryAddIcon ( Nette\Utils\Html $el, string | null $icon, string $name ) : void
$el Nette\Utils\Html
$icon string | null
$name string
return void

Property Details

$class protected property

protected string $class
return string

$icon protected property

protected string|callable $icon
return string | callable

$text protected property

protected string $text
return string

$title protected property

protected string|callable $title
return string | callable