Gets whether the button is active.
Whether the button is active.
Sets whether the button is active and responds to input.
Whether the button is active.
Gets the underlying PlayCanvas button component.
The button component.
Gets the enabled state of the component.
The enabled state of the component.
Sets the enabled state of the component.
The enabled state of the component.
Gets the duration over which tint transitions are applied.
The fade duration.
Sets the duration (in milliseconds) over which tint transitions are applied.
The fade duration.
Sets the padding used to expand the button's hit area, as a Vec4 (left, bottom, right, top).
The hit padding.
Gets the id of the pc-asset sprite shown when the button is hovered.
The hover sprite asset id.
Sets the id of the pc-asset sprite shown when the button is hovered (sprite transition
mode).
The hover sprite asset id.
Gets the frame of the hover sprite to show.
The hover sprite frame.
Sets the frame of the hover sprite to show.
The hover sprite frame.
Sets the tint color applied to the image entity when the button is hovered (tint transition mode).
The hover tint.
Gets the reference to the <pc-entity> whose image element is used for visual transitions.
The image entity reference.
Sets the reference (CSS selector, element id or entity name) to the <pc-entity> whose image
element is used for visual transitions. Defaults to the button's own entity.
The image entity reference.
Gets the id of the pc-asset sprite shown when the button is inactive.
The inactive sprite asset id.
Sets the id of the pc-asset sprite shown when the button is inactive (sprite transition
mode).
The inactive sprite asset id.
Gets the frame of the inactive sprite to show.
The inactive sprite frame.
Sets the frame of the inactive sprite to show.
The inactive sprite frame.
Sets the tint color applied to the image entity when the button is inactive (tint transition mode).
The inactive tint.
Gets the id of the pc-asset sprite shown when the button is pressed.
The pressed sprite asset id.
Sets the id of the pc-asset sprite shown when the button is pressed (sprite transition
mode).
The pressed sprite asset id.
Gets the frame of the pressed sprite to show.
The pressed sprite frame.
Sets the frame of the pressed sprite to show.
The pressed sprite frame.
Sets the tint color applied to the image entity when the button is pressed (tint transition mode).
The pressed tint.
Gets how the button reacts to being hovered/pressed.
The transition mode.
Sets how the button reacts to being hovered/pressed. Can be tint (0) or sprite (1).
The transition mode.
Protected_Called when the element is fully initialized and ready. Subclasses should call this when they're ready.
Returns a promise that resolves with this element when it's ready.
A promise that resolves with this element when it's ready.
The ButtonComponentElement interface provides properties and methods for manipulating
<pc-button>elements. The ButtonComponentElement interface also inherits the properties and methods of the HTMLElement interface.