interface UsersListForAdminBlockProps {
    errorMessageI18nHandler: ErrorMessageI18nHandler;
    logger: Logger;
    matchedBlockPage?: BlockPage;
    onNavigate: ((to, options?) => void);
    pageTitle: string;
    params: Record<string, undefined | string>;
    searchParams: URLSearchParams;
    sessionState: SessionState;
    setPageTitle: ((title) => void);
    setSearchParams: SetURLSearchParams;
    setSessionState: ((newState) => void);
    showToast: ((message) => void);
    urlForRoute: UrlForRouteFunction;
}

Hierarchy (view full)

Properties

errorMessageI18nHandler: ErrorMessageI18nHandler

Translation method for handling error messages

logger: Logger

Logger for debug and error messages. Use this instead of the console

matchedBlockPage?: BlockPage

The current block page that is being shown

onNavigate: ((to, options?) => void)

Callback when trying to navigate to another page

Type declaration

    • (to, options?): void
    • Callback when trying to navigate to another page

      Parameters

      • to: string
      • Optional options: NavigateOptions

      Returns void

pageTitle: string

The current title of the page

params: Record<string, undefined | string>

Matched url params for the block component on this page

searchParams: URLSearchParams

Query params for the current page

sessionState: SessionState

The current session state

setPageTitle: ((title) => void)

Callback to set the page title. Typically this is unneeded as blocks can set their own title when via blocks->pageTitle, but this is useful for error pages and other customized title pages

Type declaration

    • (title): void
    • Callback to set the page title. Typically this is unneeded as blocks can set their own title when via blocks->pageTitle, but this is useful for error pages and other customized title pages

      Parameters

      • title: string

      Returns void

setSearchParams: SetURLSearchParams

Callback to update query params

setSessionState: ((newState) => void)

Updater for session state

Type declaration

    • (newState): void
    • Updater for session state

      Parameters

      Returns void

showToast: ((message) => void)

Display a toast message on the screen for a short period of time

Type declaration

    • (message): void
    • Display a toast message on the screen for a short period of time

      Parameters

      • message: string

      Returns void

urlForRoute: UrlForRouteFunction

Callback when trying to figure out the url of a route

Generated using TypeDoc