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

    Interface ICollectionViewDataSourceRow<T, I>

    Interface for a data source row in the collection view.

    interface ICollectionViewDataSourceRow<
        T = any,
        I extends IIdentifiable = IIdentifiable,
    > {
        data: T;
        dataMode?: CollectionViewRowDataMode;
        focusTarget?: IHosannaView<ViewState>;
        id: string;
        index?: number;
        isEnabled?: boolean;
        isHidden?: boolean;
        items: I[];
        loadMoreUrl?: string;
        remoteItemsUrl?: string;
        settings?: ICollectionViewRowSettings;
        settingsKey?: string;
        settingsOverrides?: Partial<ICollectionViewRowSettings>;
        state?: RowState;
    }

    Type Parameters

    Index

    Properties

    data: T

    The data for the row.

    Data mode for the row (inline or remote).

    focusTarget?: IHosannaView<ViewState>

    The focus target view for the row, if any.

    id: string

    The unique ID for the row.

    index?: number

    The index of the row (assigned by the data source).

    isEnabled?: boolean

    Optional flag for row interaction.

    isHidden?: boolean

    Optional flag for hiding a row, which is still in the collection view - this can be used for loading.

    items: I[]

    The array of items within the row.

    loadMoreUrl?: string

    URL for loading more items in the row.

    remoteItemsUrl?: string

    URL for the items in the row (for remote data).

    Inline or resolved settings for the row.

    settingsKey?: string

    Reference key for predefined row settings.

    settingsOverrides?: Partial<ICollectionViewRowSettings>

    Specific overrides for the row settings.

    state?: RowState

    The current state of the row.