Hosanna UI API v2.3.0-next
    Preparing search index...

    Class CollectionViewViewStruct<T>

    Type Parameters

    • T extends CollectionViewState = CollectionViewState

    Hierarchy

    • ViewStruct<T>
      • CollectionViewViewStruct
    Index

    Constructors

    • Creates an instance of ViewStruct.

      Type Parameters

      • T extends CollectionViewState = CollectionViewState

      Parameters

      • state: T = ...

        The initial state of the view.

      Returns CollectionViewViewStruct<T>

    Properties

    __isViewStruct: boolean = true
    __viewClassName: "CollectionViewView"
    _cacheKey: string = 'viewStruct'
    _children: ViewStruct<ViewState>[] = []
    _hid: string
    eventHandlers: Record<string, Function> = {}
    parentId?: string
    state: T = ...

    The initial state of the view.

    Methods

    • Parameters

      • baseAnimationDuration: number

      Returns this

    • Sets the children of the view. NOTE - Children is not the same as subViews SubViews are the views OWNED by and created to render our view. Children are the views that are part of the view tree, when this view is conceptually a group view, like HGroup or VGroup, or Group.

      Parameters

      • children: ViewStruct<ViewState>[]

        The children to set.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Sets the clipping rectangle of the view.

      Parameters

      • clippingRect: [number, number, number, number]

        The clipping rectangle value to set.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Gets the view instance.

      Returns any

      The view instance or undefined.

    • Parameters

      • dslManagerEnabled: boolean

      Returns this

    • Parameters

      • fastestScrollSpeed: number

      Returns this

    • Parameters

      • fastScrollDuration: number

      Returns this

    • Parameters

      • fastScrollSpeed: number

      Returns this

    • Parameters

      • floatingFocusAreaHeight: number

      Returns this

    • Parameters

      • focusIndicatorTransitionType: any

      Returns this

    • Parameters

      • focusIndicatorTranslation: [number, number]

      Returns this

    • Sets whether the view should be included in the layout.

      Parameters

      • includeInLayout: boolean

        The value indicating whether to include in layout.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Parameters

      • cond: boolean

      Returns this

    • Parameters

      • layoutSettledDelayMs: number

      Returns this

    • Parameters

      • layoutSettledVisibilityThreshold: number

      Returns this

    • Sets the focus map for this view to determine next focusable behavior.

      Parameters

      • focusMap: ViewFocusMap

        The focus map configuration for directional navigation.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Registers an event handler for the blur event.

      Parameters

      • handler: onBlurHandler

        The event handler function.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Registers an event handler for the resolve focus event.

      Parameters

      • handler: onFindNextFocusableHandler

        The event handler function.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Registers an event handler for the focus event.

      Parameters

      • handler: onFocusHandler

        The event handler function.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Registers an event handler for key events.

      Parameters

      • handler: onInputEventHandler

        The event handler function.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Parameters

      • onItemBlurring: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onItemFocus: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onItemFocusing: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onItemLongPressSelected: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onItemSelected: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onLayoutSettled: ViewEventHandler<CollectionViewLayoutSettledEvent>

      Returns this

    • Parameters

      • onOptionsKeyPressed: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onRowFocus: ViewEventHandler<CollectionViewEvent>

      Returns this

    • Parameters

      • onSupplementarySelected: ViewEventHandler<CollectionViewSupplementarySelectionEvent>

      Returns this

    • Returns void

    • Parameters

      • pointerScrollSnapToFocus: boolean

      Returns this

    • Sets the position of the view.

      Parameters

      • x: number

        The x-coordinate to set.

      • y: number

        The y-coordinate to set.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Parameters

      • readingDirection: any

      Returns this

    • Parameters

      • rowSpacing: number

      Returns this

    • Parameters

      • safeAreaBehavior: any

      Returns this

    • Sets the scaleRotateCenter of the view.

      Parameters

      • scaleRotateCenter: [number, number]

        The scaleRotateCenter value to set.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Parameters

      • scrollSpeed: number

      Returns this

    • Parameters

      • state: T

      Returns void

    • Sets the size of the view.

      Parameters

      • width: number

        The width value to set.

      • height: number

        The height value to set.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Sets the translation of the view.

      Parameters

      • translation: number[]

        The translation values to set.

      Returns CollectionViewViewStruct<T>

      The current instance of ViewStruct.

    • Parameters

      • viewportHeight: number

      Returns this

    • Parameters

      • viewportWidth: number

      Returns this