Skip to content

Latest commit

 

History

History
45 lines (42 loc) · 753 Bytes

ui-element-node.md

File metadata and controls

45 lines (42 loc) · 753 Bytes

UIElement

A node representing UI interface.

import {UIElement} from "@react-guy/composer";
...
    <UIElement {...elementProps}>
        {({ value, state, errors, dispatch }) => {
            return (
                <div />
            );
        }}
    </UIElement>
API reference
AbstractNode
  • getDescendantsPath
  • getAncestorsPath
  • findByClass
  • findByElementName
  • getNextSibling
  • getPrevSibling
  • getChildNodes
  • getRoot
  • getParentNode
  • getSiblings
  • getNamespace
  • addChildNode
  • traverseTree
  • getClass
  • getEventListeners
  • isStaticListenerDisabled
  • removeEventListener
  • addEventListener
  • getName
  • getType
  • getId
UIElement
  • getState
  • setState()
Returns current element's state.