Module wonderful.element.attribute
Default element attributes.
Classes and inheritance
Attribute | The base attribute class. |
AutocomposingAttribute | Attributes that request composition when modified. |
Focusable | The focus attribute. |
ScrollBox | The scroll box attribute. |
Class Attribute
Attribute:__new__(element, ...) | Construct a new attribute. |
Attribute:_initialize() | Initialize the attribute with the default or passed value(s). |
Attribute:getElement() | Get the element to which the attribute is applied to. |
Class Focusable
Focusable:setEnabled([enable=true]) | Enable or disable focusing for the element. |
Focusable:isEnabled() | Check whether focusing is enabled for the element. |
Classes and inheritance
- Attribute
- The base attribute class.
- AutocomposingAttribute
-
Attributes that request composition when modified.
Parent classes:
- Focusable
-
The focus attribute.
Parent classes:
- ScrollBox
-
The scroll box attribute.
Parent classes:
Class Attribute
- Attribute:__new__(element, ...)
-
Construct a new attribute.
Parameters:
- element the element to which the attribute is applied to
- ... the arguments to the concrete attribute initializer
- Attribute:_initialize()
-
Initialize the attribute with the default or passed value(s).
This method is called automatically by the attribute constructor.
- Attribute:getElement()
-
Get the element to which the attribute is applied to.
Returns:
-
the element