RowActions
extends VisualItem
in package
Description of RowActions
Table of Contents
Properties
- $class : string
- $id : string
- Identifies the object with a defined name in the view
- $name : string
- Name defined in the view as key
- $children : array<string|int, mixed>
- $uniqueId : int
Methods
- __construct() : mixed
- addButton() : void
- Añade un nuevo botón. Si el array del botón contiene la clave 'group', el botón se añade como un ítem dentro del dropdown con ese nombre. Si el grupo todavía no existe, se crea automáticamente.
- addButtonGroup() : void
- Añade un nuevo grupo de botones (dropdown). Se pueden colocar botones dentro llamando a addButton() con la clave 'group' establecida al nombre de este grupo.
- getColorFromOption() : string
- Calculate color from option configuration
- getLevel() : int
- getToken() : string
- render() : string
- renderTop() : string
- setLevel() : mixed
- setToken() : mixed
- applyOperatorFromOption() : bool
- colorToClass() : string
- combineClasses() : string
- css() : string
- Returns equivalent css class to $class. To extend in plugins.
- getUniqueId() : int
- renderGroup() : string
- Renderiza un grupo de botones como un dropdown de Bootstrap que contiene sus botones.
Properties
$class
public
string
$class
$id
Identifies the object with a defined name in the view
public
string
$id
$name
Name defined in the view as key
public
string
$name
$children
protected
array<string|int, mixed>
$children
$uniqueId
protected
static int
$uniqueId
= -1
Methods
__construct()
public
__construct(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
addButton()
Añade un nuevo botón. Si el array del botón contiene la clave 'group', el botón se añade como un ítem dentro del dropdown con ese nombre. Si el grupo todavía no existe, se crea automáticamente.
public
addButton(array<string|int, mixed> $btnArray) : void
Parameters
- $btnArray : array<string|int, mixed>
addButtonGroup()
Añade un nuevo grupo de botones (dropdown). Se pueden colocar botones dentro llamando a addButton() con la clave 'group' establecida al nombre de este grupo.
public
addButtonGroup(array<string|int, mixed> $groupArray) : void
Parameters
- $groupArray : 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
Parameters
- $small : bool = false
- $viewName : 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
boolcolorToClass()
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
stringgetUniqueId()
protected
getUniqueId() : int
Return values
intrenderGroup()
Renderiza un grupo de botones como un dropdown de Bootstrap que contiene sus botones.
protected
renderGroup(array<string|int, mixed> $group, bool $small, string $viewName) : string
Parameters
- $group : array<string|int, mixed>
- $small : bool
- $viewName : string