CancelButton extends Button
Table of Contents
Constants
- JSON_OPTIONS_DATA_ATTR = 'json-options'
- UNIQ_ID_DATA_ATTR = 'btn-uniqid'
Methods
- __construct() : mixed
- addAttribute() : mixed
- addClass() : mixed
- addDataAttribute() : mixed
- bindEvent() : $this
- bindEvents() : $this
- create() : mixed
- getAttribute() : mixed
- getAttributeCollection() : ButtonAttributes
- getBaseClass() : string
- getClassList() : mixed
- getColor() : string|null
- getCounter() : int|string
- getDataAttribute() : mixed
- getDataRole() : mixed
- getEvents() : array<string|int, mixed>
- getIcon() : mixed
- getId() : mixed
- getJsClass() : string
- getLink() : mixed
- getMainButton() : SubButton
- getMaxWidth() : mixed
- getMenuButton() : SubButton
- getMenuTarget() : string
- getSize() : string|null
- getState() : bool
- getStyles() : mixed
- getTag() : string
- getText() : string
- getUniqId() : mixed
- hasClass() : mixed
- isActive() : bool
- isClocking() : bool
- isCollapsed() : bool
- isDisabled() : bool
- isDropdown() : bool
- isHover() : bool
- isInputTag() : mixed
- isInputType() : mixed
- isNoCaps() : bool
- isRound() : bool
- isWaiting() : bool
- removeAttribute() : mixed
- removeClass() : mixed
- render() : string
- Returns content as string.
- setActive() : $this
- setClocking() : $this
- setCollapsed() : static
- setColor() : Button
- setCounter() : $this
- setDataRole() : mixed
- setDisabled() : $this
- setDropdown() : static
- setHovered() : $this
- setIcon() : mixed
- setId() : mixed
- setLink() : mixed
- setMaxWidth() : mixed
- setMenu() : $this
- setNoCaps() : static
- setRound() : static
- setSize() : Button
- setState() : $this
- setStyles() : mixed
- setTag() : static
- setText() : $this
- setWaiting() : $this
- unbindEvent() : $this
- unbindEvents() : $this
- unsetAttribute() : mixed
- unsetClass() : mixed
Constants
JSON_OPTIONS_DATA_ATTR
public
mixed
JSON_OPTIONS_DATA_ATTR
= 'json-options'
UNIQ_ID_DATA_ATTR
public
mixed
UNIQ_ID_DATA_ATTR
= 'btn-uniqid'
Methods
__construct()
public
final __construct([array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $params : array<string|int, mixed> = []
addAttribute()
public
addAttribute(mixed $name[, mixed $value = null ]) : mixed
Parameters
- $name : mixed
- $value : mixed = null
addClass()
public
addClass(mixed $className) : mixed
Parameters
- $className : mixed
addDataAttribute()
public
addDataAttribute(mixed $name[, mixed $value = null ]) : mixed
Parameters
- $name : mixed
- $value : mixed = null
bindEvent()
public
bindEvent(string $eventName, string|JsHandler|JsCode $fn) : $this
Parameters
- $eventName : string
-
Event identifier.
- $fn : string|JsHandler|JsCode
-
Link to js function which will be invoked.
Tags
Return values
$thisbindEvents()
public
bindEvents(array<string|int, mixed> $events) : $this
Parameters
- $events : array<string|int, mixed>
Return values
$thiscreate()
public
final static create([array<string|int, mixed> $params = [] ]) : mixed
Parameters
- $params : array<string|int, mixed> = []
getAttribute()
public
getAttribute(mixed $name[, mixed $defaultValue = null ]) : mixed
Parameters
- $name : mixed
- $defaultValue : mixed = null
getAttributeCollection()
public
getAttributeCollection() : ButtonAttributes
Return values
ButtonAttributesgetBaseClass()
public
getBaseClass() : string
Return values
stringgetClassList()
public
getClassList() : mixed
getColor()
public
getColor() : string|null
Return values
string|nullgetCounter()
public
getCounter() : int|string
Return values
int|stringgetDataAttribute()
public
getDataAttribute(mixed $name[, mixed $defaultValue = null ]) : mixed
Parameters
- $name : mixed
- $defaultValue : mixed = null
getDataRole()
public
getDataRole() : mixed
getEvents()
public
getEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>getIcon()
public
getIcon() : mixed
getId()
public
getId() : mixed
getJsClass()
public
static getJsClass() : string
Return values
stringgetLink()
public
getLink() : mixed
getMainButton()
public
getMainButton() : SubButton
Return values
SubButtongetMaxWidth()
public
getMaxWidth() : mixed
getMenuButton()
public
getMenuButton() : SubButton
Return values
SubButtongetMenuTarget()
public
getMenuTarget() : string
Return values
stringgetSize()
public
getSize() : string|null
Return values
string|nullgetState()
public
getState() : bool
Return values
boolgetStyles()
public
getStyles() : mixed
getTag()
public
getTag() : string
Return values
stringgetText()
public
getText() : string
Return values
stringgetUniqId()
public
getUniqId() : mixed
hasClass()
public
hasClass(mixed $className) : mixed
Parameters
- $className : mixed
isActive()
public
isActive() : bool
Return values
boolisClocking()
public
isClocking() : bool
Return values
boolisCollapsed()
public
isCollapsed() : bool
Return values
boolisDisabled()
public
isDisabled() : bool
Return values
boolisDropdown()
public
isDropdown() : bool
Return values
boolisHover()
public
isHover() : bool
Return values
boolisInputTag()
public
isInputTag() : mixed
isInputType()
public
isInputType() : mixed
isNoCaps()
public
isNoCaps() : bool
Return values
boolisRound()
public
isRound() : bool
Return values
boolisWaiting()
public
isWaiting() : bool
Return values
boolremoveAttribute()
public
removeAttribute(mixed $name) : mixed
Parameters
- $name : mixed
removeClass()
public
removeClass(mixed $className) : mixed
Parameters
- $className : mixed
render()
Returns content as string.
public
render([bool $jsInit = true ]) : string
Parameters
- $jsInit : bool = true
Tags
Return values
stringsetActive()
public
setActive([bool $flag = true ]) : $this
Parameters
- $flag : bool = true
Return values
$thissetClocking()
public
setClocking([bool $flag = true ]) : $this
Parameters
- $flag : bool = true
Return values
$thissetCollapsed()
public
setCollapsed([bool $flag = true ]) : static
Parameters
- $flag : bool = true
Return values
staticsetColor()
public
setColor(string $color) : Button
Parameters
- $color : string
Tags
Return values
ButtonsetCounter()
public
setCounter(string|int $counter) : $this
Parameters
- $counter : string|int
Return values
$thissetDataRole()
public
setDataRole(mixed $dataRole) : mixed
Parameters
- $dataRole : mixed
setDisabled()
public
setDisabled([bool $flag = true ]) : $this
Parameters
- $flag : bool = true
Return values
$thissetDropdown()
public
setDropdown([bool $flag = true ]) : static
Parameters
- $flag : bool = true
Return values
staticsetHovered()
public
setHovered([bool $flag = true ]) : $this
Parameters
- $flag : bool = true
Return values
$thissetIcon()
public
setIcon(mixed $icon) : mixed
Parameters
- $icon : mixed
setId()
public
setId(mixed $id) : mixed
Parameters
- $id : mixed
setLink()
public
setLink(mixed $link) : mixed
Parameters
- $link : mixed
setMaxWidth()
public
setMaxWidth(mixed $width) : mixed
Parameters
- $width : mixed
setMenu()
public
setMenu(array<string|int, mixed> $options) : $this
Parameters
- $options : array<string|int, mixed>
Return values
$thissetNoCaps()
public
setNoCaps([bool $flag = true ]) : static
Parameters
- $flag : bool = true
Return values
staticsetRound()
public
setRound([bool $flag = true ]) : static
Parameters
- $flag : bool = true
Return values
staticsetSize()
public
setSize(mixed $size) : Button
Parameters
- $size : mixed
Tags
Return values
ButtonsetState()
public
setState(string $state) : $this
Parameters
- $state : string
Return values
$thissetStyles()
public
setStyles(array<string|int, mixed> $styles) : mixed
Parameters
- $styles : array<string|int, mixed>
setTag()
public
setTag(string $tag) : static
Parameters
- $tag : string
Return values
staticsetText()
public
setText(string $text) : $this
Parameters
- $text : string
Return values
$thissetWaiting()
public
setWaiting([bool $flag = true ]) : $this
Parameters
- $flag : bool = true
Return values
$thisunbindEvent()
public
unbindEvent(string $eventName) : $this
Parameters
- $eventName : string
Return values
$thisunbindEvents()
public
unbindEvents() : $this
Return values
$thisunsetAttribute()
public
unsetAttribute(mixed $name) : mixed
Parameters
- $name : mixed
unsetClass()
public
unsetClass(mixed $className) : mixed
Parameters
- $className : mixed