@dxos/react-ui-editor
    Preparing search index...

    Type Alias ViewModeItem

    One entry in the editor's view-mode dropdown. A built-in entry references an EditorViewMode by id and relies on the defaults (label view-mode.<id>.label, checked when it is the active view mode, select via onViewModeChange). A contributed entry (e.g. a review "Suggesting" mode) supplies its own label, checked, and onSelect so it can drive state other than the editor view mode.

    type ViewModeItem = {
        checked?: boolean;
        icon: string;
        id: string;
        label?: Label;
        onSelect?: () => void;
    }
    Index

    Properties

    checked?: boolean
    icon: string
    id: string
    label?: Label
    onSelect?: () => void