Binary Raw - Docs
    Preparing search index...

    Interface ToolbarOptions

    Configuration options passed to mountToolbar.

    interface ToolbarOptions {
        filename?: string;
        format?: FileFormat;
        initialCols?: ColWidth;
        onColsChange?: (cols: ColWidth) => void;
        onRedo?: () => void;
        onSearch?: (query: SearchQuery) => void;
        onSearchNext?: () => void;
        onSearchPrev?: () => void;
        onUndo?: () => void;
    }
    Index

    Properties

    filename?: string

    File name (used in the title and as the default export filename).

    format?: FileFormat

    Format of the loaded file (used to render the format badge).

    initialCols?: ColWidth

    Initial column width for the hex view.

    onColsChange?: (cols: ColWidth) => void

    Called when the user selects a different column width.

    onRedo?: () => void

    Called when the user triggers redo from the toolbar or keyboard shortcut.

    onSearch?: (query: SearchQuery) => void

    Called when the user submits a search query.

    onSearchNext?: () => void

    Called when the user navigates to the next search result.

    onSearchPrev?: () => void

    Called when the user navigates to the previous search result.

    onUndo?: () => void

    Called when the user triggers undo from the toolbar or keyboard shortcut.