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

Class Focusable

Focusable:setEnabled([enable=true])
Enable or disable focusing for the element.

Parameters:

  • enable boolean whether to enable focusing on an element (default true)
Focusable:isEnabled()
Check whether focusing is enabled for the element.

Returns:

    boolean whether focusing is enabled
generated by LDoc 1.4.6 Last updated 2019-07-27 21:32:05