CopilotButton extends Button
FinalYes
Table of Contents
Constants
- SCOPE_MOBILE = 'mobile'
- SCOPE_WEB = 'web'
- STATE_AI_LOADING = 'ai-loading'
- STATE_AI_SUCCESS = 'ai-success'
- STATE_DEFAULT = 'default'
- STATE_DISABLED = 'disabled'
- STATE_HIDDEN = 'hidden'
- STATE_LOADING = 'loading'
- STATE_LOCKED = 'locked'
- TYPE_AI = 'ai'
- TYPE_PRIMARY = 'primary'
- TYPE_SECONDARY = 'secondary'
Methods
- __construct() : mixed
- getAction() : Action|null
- getHideIfReadonly() : bool|null
- getIcon() : string|null
- getMenuItems() : array<string|int, mixed>|null
- getProps() : array<string|int, mixed>|null
- getScope() : string|null
- getSort() : int|null
- getState() : string|null
- getTitle() : string
- getTooltip() : string|null
- getType() : string
- setAction() : self
- setHideIfReadonly() : self
- setIcon() : self
- setMenuItems() : self
- setProps() : self
- setScope() : self
- setScopeMobile() : self
- setScopeWeb() : self
- setSort() : self
- setState() : self
- setStateDisabled() : self
- setStateHidden() : self
- setTooltip() : self
- setType() : self
- toArray() : array<string|int, mixed>
Constants
SCOPE_MOBILE
public
mixed
SCOPE_MOBILE
= 'mobile'
SCOPE_WEB
public
mixed
SCOPE_WEB
= 'web'
STATE_AI_LOADING
public
mixed
STATE_AI_LOADING
= 'ai-loading'
STATE_AI_SUCCESS
public
mixed
STATE_AI_SUCCESS
= 'ai-success'
STATE_DEFAULT
public
mixed
STATE_DEFAULT
= 'default'
STATE_DISABLED
public
mixed
STATE_DISABLED
= 'disabled'
STATE_HIDDEN
public
mixed
STATE_HIDDEN
= 'hidden'
STATE_LOADING
public
mixed
STATE_LOADING
= 'loading'
STATE_LOCKED
public
mixed
STATE_LOCKED
= 'locked'
TYPE_AI
public
mixed
TYPE_AI
= 'ai'
TYPE_PRIMARY
public
mixed
TYPE_PRIMARY
= 'primary'
TYPE_SECONDARY
public
mixed
TYPE_SECONDARY
= 'secondary'
Methods
__construct()
public
__construct(Context $context, AssociatedEntityModel|null $model, int $activityId, bool $isMultiScenario) : mixed
Parameters
- $context : Context
- $model : AssociatedEntityModel|null
- $activityId : int
- $isMultiScenario : bool
getAction()
public
getAction() : Action|null
Return values
Action|nullgetHideIfReadonly()
public
getHideIfReadonly() : bool|null
Return values
bool|nullgetIcon()
public
getIcon() : string|null
Return values
string|nullgetMenuItems()
public
getMenuItems() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetProps()
public
getProps() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetScope()
public
getScope() : string|null
Return values
string|nullgetSort()
public
getSort() : int|null
Return values
int|nullgetState()
public
getState() : string|null
Return values
string|nullgetTitle()
public
getTitle() : string
Return values
stringgetTooltip()
public
getTooltip() : string|null
Return values
string|nullgetType()
public
getType() : string
Return values
stringsetAction()
public
setAction(Action|null $action) : self
Parameters
- $action : Action|null
Return values
selfsetHideIfReadonly()
public
setHideIfReadonly([bool|null $hideIfReadonly = true ]) : self
Parameters
- $hideIfReadonly : bool|null = true
Return values
selfsetIcon()
public
setIcon(string $icon) : self
Parameters
- $icon : string
Return values
selfsetMenuItems()
public
setMenuItems(array<string|int, mixed>|null $menuItems) : self
Parameters
- $menuItems : array<string|int, mixed>|null
Return values
selfsetProps()
public
setProps(array<string|int, mixed>|null $props) : self
Parameters
- $props : array<string|int, mixed>|null
Return values
selfsetScope()
public
setScope(string|null $scope) : self
Parameters
- $scope : string|null
Return values
selfsetScopeMobile()
public
setScopeMobile() : self
Return values
selfsetScopeWeb()
public
setScopeWeb() : self
Return values
selfsetSort()
public
setSort(int $sort) : self
Parameters
- $sort : int
Return values
selfsetState()
public
setState(string|null $state) : self
Parameters
- $state : string|null
Return values
selfsetStateDisabled()
public
setStateDisabled() : self
Return values
selfsetStateHidden()
public
setStateHidden() : self
Return values
selfsetTooltip()
public
setTooltip(string|null $hint) : self
Parameters
- $hint : string|null
Return values
selfsetType()
public
setType(string $type) : self
Parameters
- $type : string
Return values
selftoArray()
public
toArray() : array<string|int, mixed>