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

    Interface IViewFragmentStyle

    The IViewFragmentStyle interface represents the style for a view fragment of BaseViewFragmentView. This extends the base fragment style with additional properties specific to view fragments.

    interface IViewFragmentStyle {
        $supportsDataMap?: boolean;
        animated?: IFragmentFocusAnimation | IFragmentFocusAnimation[];
        cacheFragmentConstraintLayout?: boolean;
        cacheFragmentConstraintLayoutKeyMode?: "full" | "geometry";
        callbacks?: IViewFragmentCallbackNameMap;
        contentHeightAnchorViewId?: string;
        dataMap?: IViewFragmentDataMap;
        height: number;
        id?: string;
        isResolutionApplied?: boolean;
        views: {
            base: IFragmentChildViewStyle[];
            disabled?: IFragmentChildViewStyle;
            error?: IFragmentChildViewStyle;
            focused?: IFragmentChildViewStyle;
            focusFootprint?: IFragmentChildViewStyle;
            focusSelected?: IFragmentChildViewStyle;
            interacted?: IFragmentChildViewStyle;
            normal: IFragmentChildViewStyle;
            selected?: IFragmentChildViewStyle;
        };
        width: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    $supportsDataMap?: boolean

    Interpolate named child fields between the existing status styles using CollectionView progress.

    cacheFragmentConstraintLayout?: boolean

    Opt-in for styles whose constraint results are stable for a given style/cell-size/status/computed tuple. CollectionView cells can reuse the cached writes across fragment instances instead of resolving every rule.

    cacheFragmentConstraintLayoutKeyMode?: "full" | "geometry"

    full (default): cache key includes computed signature. geometry: cache key uses style/size/focus only — safe when computed values do not affect layout.

    contentHeightAnchorViewId?: string

    After data map + constraints, measure this subview id and set the fragment host height to its bottom edge, then apply constraints again (so rules anchored to cell bottom, e.g. border FillY, match content).

    height: number
    id?: string
    isResolutionApplied?: boolean
    views: {
        base: IFragmentChildViewStyle[];
        disabled?: IFragmentChildViewStyle;
        error?: IFragmentChildViewStyle;
        focused?: IFragmentChildViewStyle;
        focusFootprint?: IFragmentChildViewStyle;
        focusSelected?: IFragmentChildViewStyle;
        interacted?: IFragmentChildViewStyle;
        normal: IFragmentChildViewStyle;
        selected?: IFragmentChildViewStyle;
    }
    width: number