-
Notifications
You must be signed in to change notification settings - Fork 4
SBLinkButton
Nikita Yudin edited this page Feb 13, 2024
·
2 revisions
Inherits: SBButton
A button that represents a link.
A button that represents a link. This type of button is primarily used for interactions that cause a context change (like linking to a web page).
Let's look on list of all available properties:
Name | Type | Default | Description |
---|---|---|---|
link_text | String | "" |
The button's text that will be displayed inside the value button's area. |
uri | String | The URI for this SBLinkButton. If set to a valid URI, pressing the button opens the URI using the operating system's default program for the protocol (via OS.shell_open). HTTP and HTTPS URLs open the default web browser. | |
link_alignment | int | Control.SIZE_SHRINK_CENTER |
The alignment of the link text. |
After we initialize we have its initialized instance in variable with helpful methods:
Name | Return | Description |
---|---|---|
set_link_text(value: String) | void | Sets the link text. |
get_link_text() | String | Returns the link text. |
set_uri(value: String) | void | Sets the URI. |
get_uri() | String | Returns the URI. |
open_uri() | void | Opens the URI using the operating system's default program for the protocol (via OS.shell_open). HTTP and HTTPS URLs open the default web browser. |
SpinButton comes with some theme properties that you apply for styling.
See Theme Module
Site yudinikita.ru · Email mail@yudinikita.ru · GitHub @yudinikita