hosanna-ui-docs - v0.9.0
    Preparing search index...

    VirtualSGNode is a web-based implementation of the ISGNNode interface. It provides functionality for managing fields, children, observers, and rendering logic for SG nodes.

    Hierarchy (View Summary)

    Implements

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    _hid: string

    Internal ID used to identify nodes in debugger views. DO NOT USE THIS ID FOR ANYTHING ELSE.

    _id: string = ''
    _oid: undefined = undefined

    Internal object ID (not used on some platforms).

    boundView: any

    The bound view associated with the node (if any).

    change: undefined = undefined

    Change handler for the node (not implemented).

    children: ISGNNode[] = []

    The child nodes of this node.

    div: undefined | HTMLDivElement

    The HTML div element associated with the node (if applicable).

    focusable: boolean = true

    Indicates whether the node is focusable.

    focusedChild: undefined = undefined

    The currently focused child node (if any).

    observers: Record<string, FieldObserver[]> = {}

    A record of field observers, keyed by field names.

    Accessors

    Methods

    • Adds an observer to a specific field.

      Parameters

      • fieldName: string

        The name of the field to observe.

      • portOrString: string | Function | ISGROMessagePort

        The message port or function to associate with the observer.

      • OptionalinfoFields: string[]

        Optional fields to observe for additional information.

      Returns boolean

      true if the observer was added successfully, otherwise false.