RowButton
extends VisualItem
in package
Description of RowButton
Table of Contents
Properties
- $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
- $uniqueId : int
Methods
- __construct() : mixed
- getColorFromOption() : string
- Calculate color from option configuration
- getLevel() : int
- getToken() : string
- render() : string
- renderDropdownItem() : string
- Renderiza el botón como un ítem de dropdown de Bootstrap (usado dentro de grupos de botones).
- 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
$uniqueId
protected
static int
$uniqueId
= -1
Methods
__construct()
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, 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
stringgetLevel()
public
static getLevel() : int
Return values
intgetToken()
public
static getToken() : string
Return values
stringrender()
public
render([bool $small = false ][, string $viewName = '' ][, string $jsFunction = '' ]) : string
Parameters
- $small : bool = false
- $viewName : string = ''
- $jsFunction : string = ''
Return values
stringrenderDropdownItem()
Renderiza el botón como un ítem de dropdown de Bootstrap (usado dentro de grupos de botones).
public
renderDropdownItem([string $viewName = '' ][, string $jsFunction = '' ]) : string
Parameters
- $viewName : string = ''
- $jsFunction : string = ''
Return values
stringrenderTop()
public
renderTop() : string
Return values
stringsetLevel()
public
static setLevel(int $new) : mixed
Parameters
- $new : int
setToken()
public
static setToken(string $token) : mixed
Parameters
- $token : string
applyOperatorFromOption()
protected
applyOperatorFromOption(array<string|int, string> $option, mixed $value) : bool
Parameters
- $option : array<string|int, string>
- $value : mixed
Return values
boolasset()
protected
asset(string $url) : string
Parameters
- $url : string
Return values
stringcolorToClass()
protected
colorToClass(string $color, string $prefix) : string
Parameters
- $color : string
- $prefix : string
Return values
stringcombineClasses()
protected
combineClasses(array<string|int, mixed> ...$classes) : string
Parameters
- $classes : array<string|int, mixed>
Return values
stringcss()
Returns equivalent css class to $class. To extend in plugins.
protected
css(string $class) : string
Parameters
- $class : string
Return values
stringgetOnClickValue()
protected
getOnClickValue(string $viewName, string $jsFunction) : string
Parameters
- $viewName : string
- $jsFunction : string
Return values
stringgetUniqueId()
protected
getUniqueId() : int