ActButton class

Defines an "action button" such as OK, Cancel, Yes, No, etc that can be used in dialogs to start an action. The button is actually a html.ButtonElement. Use setAttr to modify attributes.

Constructors

ActButton()
Creates the button

Properties

but ↔ ButtonElement
The action button
read / write
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

setButtonStyle() → void
Sets the button attributes from but_attr
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited

Static Properties

ATTR_BUTTONS → Map<String, String>
The button default attribute values
final
but_attr ↔ Map<String, String>
The button active attribute values
read / write
BUT_BACKGROUND → String
The attribute definitions
final
BUT_BORDER → String
The attribute definitions
final
BUT_BORDER_BOTTOM → String
The attribute definitions
final
BUT_BORDER_RADIUS → String
The attribute definitions
final
BUT_COLOR → String
The attribute definitions
final
BUT_CURSOR_AUTO → String
The attribute definitions
final
BUT_CURSOR_POINTER → String
The attribute definitions
final
BUT_DISPLAY → String
The attribute definitions
final
BUT_FONT_SIZE → String
The attribute definitions
final
BUT_FONT_SMOOTHING → String
The attribute definitions
final
BUT_FONT_WEIGHT → String
The attribute definitions
final
BUT_MARGIN → String
The attribute definitions
final
BUT_OPACITY_LEAVE → String
The attribute definitions
final
BUT_OPACITY_OVER → String
The attribute definitions
final
BUT_PADDING → String
The attribute definitions
final
BUT_TEXT_ALIGN → String
The attribute definitions
final

Static Methods

initAttrFromDefaults() → void
Initializes the button attributes fromthe respective defaults.
setAttr(Map<String, String> myAttr) → void
Sets the button attributes specified in myAttr. Overrides the respective current values (e.g. the defaults). Example: setAttr({BUT_COLOR: "red",BUT_FONT_SIZE: "20px"});