platform-bible-react
    Preparing search index...

    Interface MarkerMenuProps

    Props for the marker menu component

    interface MarkerMenuProps {
        defaultHighlightedMarker?: string;
        localizedStrings: MarkerMenuLocalizedStrings;
        markerMenuItems: MarkerMenuItem[];
        searchPlaceholder?: string;
        searchRef?: LegacyRef<HTMLInputElement>;
    }
    Index

    Properties

    defaultHighlightedMarker?: string

    Optional marker whose row is highlighted when the menu opens, in place of the first row. Pass the marker the selection already has, so that Enter on a freshly opened menu re-applies it rather than picking whatever sorts first. Ignored when no selectable row has this marker, in which case the first row is highlighted as usual. Read only on mount.

    localizedStrings: MarkerMenuLocalizedStrings

    Localized strings to pass through for the marker menu

    markerMenuItems: MarkerMenuItem[]

    A list of the marker menu items which can either be a marker to insert or some basic command actions

    searchPlaceholder?: string

    Optional placeholder text for the search input. When provided, overrides the default %markerMenu_searchPlaceholder% localized string.

    searchRef?: LegacyRef<HTMLInputElement>

    Optional ref for the command search input to be able to focus it manually