Interface ITaggleOptions

interface ITaggleOptions {
    animated: boolean;
    canRender: ((type, renderer, col, mode) => boolean);
    copyableRows: boolean;
    customRowUpdate: ((row, rowIndex) => void);
    defaultSlopeGraphMode: "item" | "band";
    dynamicHeight: ((data, ranking) => IDynamicHeight);
    expandLineOnHover: boolean;
    flags: Partial<ILineUpFlags>;
    groupHeight: number;
    groupPadding: number;
    hierarchyIndicator: boolean;
    ignoreUnsupportedBrowser: boolean;
    instanceId: string;
    labelRotation: number;
    levelOfDetail: ((rowIndex) => "high" | "low");
    livePreviews: Partial<ILivePreviewOptions>;
    onDialogBackgroundClick: "cancel" | "confirm";
    overviewMode: boolean;
    renderers: {
        [type: string]: ICellRendererFactory;
    };
    resolveToolbarActions: ((col, keys, lookup) => IToolbarAction[]);
    resolveToolbarDialogAddons: ((col, keys, lookup) => IToolbarDialogAddon[]);
    rowHeight: number;
    rowPadding: number;
    sidePanel: boolean;
    sidePanelCollapsed: boolean;
    summaryHeader: boolean;
    toolbarActions: IToolbarLookup<IToolbarAction>;
    toolbarDialogAddons: IToolbarLookup<IToolbarDialogAddon>;
}

Hierarchy (view full)

Properties

animated: boolean

option to enable/disable animated transitions

Default

true
canRender: ((type, renderer, col, mode) => boolean)

custom check whether a given renderer can render the given column in the given mode

Type declaration

copyableRows: boolean

option to enable to copy selected rows using ctrl-c

Default

false
customRowUpdate: ((row, rowIndex) => void)

custom function to be called when updating a HTML row

Type declaration

    • (row, rowIndex): void
    • Parameters

      • row: HTMLElement

        node element to be updated

      • rowIndex: number

        row index to be rendered in the row

      Returns void

defaultSlopeGraphMode: "item" | "band"

option to specify the default slope graph mode

Default

'item'
dynamicHeight: ((data, ranking) => IDynamicHeight)

custom function to compute the height of a row (group or item)

Type declaration

Returns

the height compute function or null to use the default

expandLineOnHover: boolean

option to enforce that the whole row is shown upon hover without overflow hidden

Default

false
flags: Partial<ILineUpFlags>

custom flags for optimization

groupHeight: number

height of an aggregated group in pixel

Default

40
groupPadding: number

padding between two groups in pixel

Default

5
hierarchyIndicator: boolean

show the sorting and grouping hierarchy indicators in the side panel

Default

true
ignoreUnsupportedBrowser: boolean

ignore incompatible browser and always show (on own risk)

Default

false
instanceId: string

identifier for this LineUp instance. by default a random id is generated.

Default

random string
labelRotation: number

how many degrees should a label be rotated in case of narrow columns

Default

0 no rotation
levelOfDetail: ((rowIndex) => "high" | "low")

custom function to compute the level of detail for a row

Type declaration

    • (rowIndex): "high" | "low"
    • Parameters

      • rowIndex: number

        the current row index to be rendered

      Returns "high" | "low"

Returns

livePreviews: Partial<ILivePreviewOptions>

flag whether to shows filter previews as soon as the user changes the filter in the dialog

Default

{search: true,filter: true, vis: true,sort: true, group: true, groupSort: true, colorMapping: true}
onDialogBackgroundClick: "cancel" | "confirm"

flag whether dialogs should confirm or cancel on clicking the background

Default

cancel
overviewMode: boolean

whether the overview mode is enabled by default

Default

false
renderers: {
    [type: string]: ICellRendererFactory;
}

register custom renderer factories

Type declaration

resolveToolbarActions: ((col, keys, lookup) => IToolbarAction[])

hook for postprocess the toolbar actions for a column

Type declaration

resolveToolbarDialogAddons: ((col, keys, lookup) => IToolbarDialogAddon[])

hook for postprocess the toolbar dialog addons for a column

Type declaration

rowHeight: number

height of a row

Default

18
rowPadding: number

padding between two rows

Default

2
sidePanel: boolean

option to enable/disable the panel

Default

true
sidePanelCollapsed: boolean

option to specify whether the panel should be collapsed by default

Default

false
summaryHeader: boolean

option to enable/disable showing a summary (histogram, ...) in the header

Default

true

register custom toolbar actions and dialog addons

toolbarDialogAddons: IToolbarLookup<IToolbarDialogAddon>