PHP Trait Ublaboo\DataGrid\Traits\TButton

Afficher le fichier Open project: ublaboo/datagrid

Protected Properties

Свойство Type Description
$class string
$icon string | callable
$text string
$title string | callable

Méthodes publiques

Méthode 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 méthode

Get attribute class
public getClass ( ) : string
Résultat string

getIcon() public méthode

Get icon
public getIcon ( ) : string
Résultat string

getText() public méthode

Get text
public getText ( ) : string
Résultat string

getTitle() public méthode

Get attribute title
public getTitle ( ) : string
Résultat string

setClass() public méthode

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

setIcon() public méthode

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

setText() public méthode

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

setTitle() public méthode

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

tryAddIcon() public méthode

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
Résultat void

Property Details

$class protected_oe property

protected string $class
Résultat string

$icon protected_oe property

protected string|callable $icon
Résultat string | callable

$text protected_oe property

protected string $text
Résultat string

$title protected_oe property

protected string|callable $title
Résultat string | callable