RowButton
extends VisualItem
in package
Description of RowButton
Tags
Table of Contents
- $action : string
- $class : string
- $color : string
- $confirm : bool
- $icon : string
- $id : string
- Identifies the object with a defined name in the view
- $label : string
- $level : int
- Selected security level.
- $name : string
- Name defined in the view as key
- $target : string
- $title : string
- $type : string
- $i18n : Translator
- $uniqueId : int
- $token : string
- __construct() : mixed
- getColorFromOption() : string
- Calculate color from option configuration
- getLevel() : int
- getToken() : string
- render() : string
- renderTop() : string
- setLevel() : mixed
- setToken() : mixed
- applyOperatorFromOption() : bool
- asset() : string
- colorToClass() : string
- combineClasses() : string
- css() : string
- Returns equivalent css class to $class. To extend in plugins.
- getOnClickValue() : string
- getUniqueId() : int
Properties
$action
public
string
$action
$class
public
string
$class
$color
public
string
$color
$confirm
public
bool
$confirm
$icon
public
string
$icon
$id
Identifies the object with a defined name in the view
public
string
$id
$label
public
string
$label
$level
Selected security level.
public
int
$level
$name
Name defined in the view as key
public
string
$name
$target
public
string
$target
$title
public
string
$title
$type
public
string
$type
$i18n
protected
static Translator
$i18n
Tags
$uniqueId
protected
static int
$uniqueId
= -1
$token
private
static string
$token
= ''
Methods
__construct()
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Return values
mixed —getColorFromOption()
Calculate color from option configuration
public
getColorFromOption(array<string|int, string> $option, mixed $value, string $prefix) : string
Parameters
- $option : array<string|int, string>
- $value : mixed
- $prefix : string
Return values
string —getLevel()
public
static getLevel() : int
Return values
int —getToken()
public
static getToken() : string
Return values
string —render()
public
render([bool $small = false ][, string $viewName = '' ][, string $jsFunction = '' ]) : string
Parameters
- $small : bool = false
- $viewName : string = ''
- $jsFunction : string = ''
Return values
string —renderTop()
public
renderTop() : string
Return values
string —setLevel()
public
static setLevel(int $new) : mixed
Parameters
- $new : int
Return values
mixed —setToken()
public
static setToken(string $token) : mixed
Parameters
- $token : string
Return values
mixed —applyOperatorFromOption()
protected
applyOperatorFromOption(array<string|int, string> $option, mixed $value) : bool
Parameters
- $option : array<string|int, string>
- $value : mixed
Return values
bool —asset()
protected
asset(string $url) : string
Parameters
- $url : string
Return values
string —colorToClass()
protected
colorToClass(string $color, string $prefix) : string
Parameters
- $color : string
- $prefix : string
Return values
string —combineClasses()
protected
combineClasses(array<string|int, mixed> ...$classes) : string
Parameters
- $classes : array<string|int, mixed>
Return values
string —css()
Returns equivalent css class to $class. To extend in plugins.
protected
css(string $class) : string
Parameters
- $class : string
Return values
string —getOnClickValue()
protected
getOnClickValue(string $viewName, string $jsFunction) : string
Parameters
- $viewName : string
- $jsFunction : string
Return values
string —getUniqueId()
protected
getUniqueId() : int