Class: Ferro::Element::ListItem
- Inherits:
-
BaseElement
- Object
- BaseElement
- Ferro::Element::ListItem
- Defined in:
- opal/opal-ferro/elements/ferro_inline.js.rb
Overview
Creates an inline element. In the DOM creates a: <li>. To be used together with List.
Constant Summary
Constants included from Ferro::Elementary
Ferro::Elementary::RESERVED_NAMES
Instance Attribute Summary
Attributes inherited from BaseElement
#children, #domtype, #element, #parent, #sym
Instance Method Summary collapse
-
#_before_create ⇒ Object
Internal method.
-
#destroy ⇒ Object
Remove this item from the list and the DOM.
Methods inherited from BaseElement
#add_state, #add_states, #classify_state, #component, #dom_id, #factory, #get_text, #html, #initialize, #option_replace, #remove_attribute, #root, #router, #set_attribute, #set_text, #state_active?, #toggle_state, #update_state, #value, #value=
Methods included from Ferro::Elementary
#_after_create, #_stylize, #add_child, #after_create, #before_create, #cascade, #create, #creation, #each_child, #forget_children, #method_missing, #remove_child, #style, #symbolize
Constructor Details
This class inherits a constructor from Ferro::BaseElement
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ferro::Elementary
Instance Method Details
#_before_create ⇒ Object
Internal method.
81 82 83 |
# File 'opal/opal-ferro/elements/ferro_inline.js.rb', line 81 def _before_create @domtype = :li end |
#destroy ⇒ Object
Remove this item from the list and the DOM.
86 87 88 89 |
# File 'opal/opal-ferro/elements/ferro_inline.js.rb', line 86 def destroy super parent.unlist_item(@sym) end |