Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface representing a focusable element.

    interface IFocusable {
        _hid?: string;
        canReceiveFocus: boolean;
        contentId?: string;
        id: string;
        isFocused: boolean;
        parent?: IFocusable;
        findNextFocusable(
            event: INextFocusResolutionEvent,
        ): undefined | IFocusable | NextViewFocus;
        onBlur(): void;
        onFocus(event?: INextFocusResolutionEvent): void;
        onFocusedChildChange(childId: string): void;
        onInputEvent(inputEvent: HsInputEvent): void;
    }

    Hierarchy

    • IIdentifiable
      • IFocusable
    Index

    Properties

    _hid?: string
    canReceiveFocus: boolean

    Indicates whether the element can receive focus.

    contentId?: string
    id: string
    isFocused: boolean

    Indicates whether the element is currently focused.

    parent?: IFocusable

    The parent focusable element, if any.

    Methods

    • Resolves the next focusable element in the given direction.

      Parameters

      Returns undefined | IFocusable | NextViewFocus

      The next focusable element, or undefined if none exists.

    • Called when the element loses focus.

      Returns void

    • Called when a child element's focus state changes.

      Parameters

      • childId: string

        The ID of the child element.

      Returns void