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

    The IViewFragmentProvider interface provides methods for managing view fragments. View fragments are reusable components that can be used to create cells and other views. This interface allows for retrieving, creating, and releasing view fragments based on style keys. It also supports applying view statuses to fragments.

    interface IViewFragmentProvider {
        applyViewStatus(viewFragment: IViewFragment, status: ViewStatus): void;
        createViewFragmentsWithStyleKey(styleKey: string, count: number): void;
        getFragmentCounts(): IViewFragmentCounts;
        getViewFragmentByStyleKey(styleKey: string): undefined | IViewFragment;
        getViewFragmentForRow(
            row: IBaseCollectionViewRow,
        ): undefined | IViewFragment;
        releaseFragment(view: IViewFragment): void;
    }

    Implemented by

    Index

    Methods

    • Creates multiple view fragments with a given style key.

      Parameters

      • styleKey: string

        The style key for the view fragments.

      • count: number

        The number of view fragments to create.

      Returns void