Bitrix API

SubButton extends BaseButton

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
getButtonType()  : string
getClassList()  : mixed
getCounter()  : mixed
getDataAttribute()  : mixed
getDataRole()  : mixed
getEvents()  : array<string|int, mixed>
getId()  : mixed
getJsClass()  : mixed
getLink()  : mixed
getMaxWidth()  : mixed
getSplitButton()  : Button
getStyles()  : mixed
getTag()  : string
getText()  : string
getUniqId()  : mixed
hasClass()  : mixed
isActive()  : bool
isDisabled()  : bool
isHovered()  : bool
isInputTag()  : mixed
isInputType()  : mixed
isMainButton()  : bool
isMenuButton()  : bool
removeAttribute()  : mixed
removeClass()  : mixed
render()  : string
Returns content as string.
setActive()  : static
setCounter()  : mixed
setDataRole()  : mixed
setDisabled()  : static
setHovered()  : static
setId()  : mixed
setLink()  : mixed
setMaxWidth()  : mixed
setSplitButton()  : SubButton
setStyles()  : mixed
setTag()  : static
setText()  : static
toggleState()  : static
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
see
in

js BX.UI.BaseButton.handleEvent to know order of arguments in event handler.

Return values
$this

bindEvents()

public bindEvents(array<string|int, mixed> $events) : $this
Parameters
$events : array<string|int, mixed>
Return values
$this

create()

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

getBaseClass()

public getBaseClass() : string
Return values
string

getButtonType()

public getButtonType() : string
Return values
string

getDataAttribute()

public getDataAttribute(mixed $name[, mixed $defaultValue = null ]) : mixed
Parameters
$name : mixed
$defaultValue : mixed = null

getEvents()

public getEvents() : array<string|int, mixed>
Return values
array<string|int, mixed>

getJsClass()

public static getJsClass() : mixed

getTag()

public getTag() : string
Return values
string

getText()

public getText() : string
Return values
string

hasClass()

public hasClass(mixed $className) : mixed
Parameters
$className : mixed

isActive()

public isActive() : bool
Return values
bool

isDisabled()

public isDisabled() : bool
Return values
bool

isHovered()

public isHovered() : bool
Return values
bool

isMainButton()

public isMainButton() : bool
Return values
bool

isMenuButton()

public isMenuButton() : bool
Return values
bool

removeAttribute()

public removeAttribute(mixed $name) : mixed
Parameters
$name : mixed

removeClass()

public removeClass(mixed $className) : mixed
Parameters
$className : mixed

render()

Returns content as string.

public render([mixed $jsInit = true ]) : string
Parameters
$jsInit : mixed = true
Return values
string

setActive()

public setActive([bool $flag = true ]) : static
Parameters
$flag : bool = true
Return values
static

setCounter()

public setCounter(mixed $counter) : mixed
Parameters
$counter : mixed

setDataRole()

public setDataRole(mixed $dataRole) : mixed
Parameters
$dataRole : mixed

setDisabled()

public setDisabled([bool $flag = true ]) : static
Parameters
$flag : bool = true
Return values
static

setHovered()

public setHovered([bool $flag = true ]) : static
Parameters
$flag : bool = true
Return values
static

setId()

public setId(mixed $id) : mixed
Parameters
$id : mixed
public setLink(mixed $link) : mixed
Parameters
$link : mixed

setMaxWidth()

public setMaxWidth(mixed $width) : mixed
Parameters
$width : mixed

setStyles()

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
static

setText()

public setText(string $text) : static
Parameters
$text : string
Return values
static

toggleState()

public toggleState(mixed $flag, mixed $globalState, mixed $mainState, mixed $menuState) : static
Parameters
$flag : mixed
$globalState : mixed
$mainState : mixed
$menuState : mixed
Return values
static

unbindEvent()

public unbindEvent(string $eventName) : $this
Parameters
$eventName : string
Return values
$this

unbindEvents()

public unbindEvents() : $this
Return values
$this

unsetAttribute()

public unsetAttribute(mixed $name) : mixed
Parameters
$name : mixed

unsetClass()

public unsetClass(mixed $className) : mixed
Parameters
$className : mixed

        
On this page

Search results