ButtonElement
Last updated
Last updated
Creates a ButtonElement
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The ButtonElement
instance.
Sets the link URL for the ButtonElement
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The ButtonElement
instance.
Sets a custom identifier for the ButtonElement
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Return: The ButtonElement
instance.
Sets the value for the ButtonElement
instance.
Return: The ButtonElement
instance.
Sets the style of the ButtonElement
to primary
.
Return: The ButtonElement
instance.
Sets the style of the ButtonElement
to danger
.
Return: The ButtonElement
instance.
Sets the confirm object for the ButtonElement
instance.
Return: The newly created ConfirmObject
instance.
Sets the accessibility label for the button.
Return: The ButtonElement
instance.
Converts the ButtonElement
instance to a serializable format.
Return: (struct
) A struct representing this ButtonElement
instance.
Name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Type | Required | Default | Description |
---|---|---|---|---|
text
string
true
The text for the button. Maximum length of 75.
callback
function
false
null
A callback function to configure the ButtonElement
.
linkUrl
string
true
The link URL for the button instance. Maximum length of 3000 characters.
id
string
true
The custom identifier for the ButtonElement
instance. Maximum of 255 characters.
value
string
true
The value for the ButtonElement
instance. Maximum of 2000 characters.
No arguments
No arguments
text
string
true
The text of the confirm object.
callback
function
false
A callback function to configure the confirm object.
label
string
true
The accessibility label for the button. Maximum length of 75 characters.
No arguments