meinu
    Preparing search index...

    Interface ScrollableData<Data>

    interface ScrollableData<Data extends ScrollableDataType> {
        int: RepliableInteraction;
        show_page_count?: boolean;
        fail_msg?: ScrollableContent;
        data: ScrollableDataFn<Data>;
        controllable?: ScrollableControlType;
        match: (
            val: Data[number],
            index: number,
            array: Data[number][],
        ) => Awaitable<ScrollableContent>;
    }

    Type Parameters

    Index

    Properties

    The original interaction, used for initiating the scrollable instance

    show_page_count?: boolean

    Show the page count on the buttons row

    false
    

    The message to show when the data fetching fails

    { content: "Failed to get data." }
    

    The array data to be used in the scrollable

    controllable?: ScrollableControlType

    Who can control the scrollable.

    'initiator'
    
    match: (
        val: Data[number],
        index: number,
        array: Data[number][],
    ) => Awaitable<ScrollableContent>

    The function to match the data with the content