Skip to main content

IGridSettings

Defined in: js-api/src/interfaces/d4.ts:3673

Properties​

PropertyTypeDescriptionDefined in
addNewRowOnLastRowEditbooleanAutomatically adds a new row in the end of the dataframe when the last row is edited The grid should also be in the editable modejs-api/src/interfaces/d4.ts:3687
allowBlockSelectionbooleanMouse drag on the data cells selects both rows and columnsjs-api/src/interfaces/d4.ts:3739
allowChangeCurrentObjectbooleanWhether the current object (shown in the context panel) is changed when you click on a column header.js-api/src/interfaces/d4.ts:3790
allowColHeaderResizingbooleanResizing column header by dragging the border between the header and the first rowjs-api/src/interfaces/d4.ts:3838
allowColReorderingbooleanReordering columns by dragging the headerjs-api/src/interfaces/d4.ts:3786
allowColResizingbooleanResizing columns by dragging the border between column headersjs-api/src/interfaces/d4.ts:3841
allowColSelectionbooleanShift+click on a header to select a column Shift+mouse drag on the headers to select multiple columns Ctrl+click to invert selection Ctrl+Shift+click to deselectjs-api/src/interfaces/d4.ts:3745
allowColumnMenubooleanWhether the "hamburger" menu should be shown for a column when the mouse is over its headerjs-api/src/interfaces/d4.ts:3771
allowContentPanningbooleanRight-click and drag to pan contentjs-api/src/interfaces/d4.ts:3761
allowDynamicMenusboolean-js-api/src/interfaces/d4.ts:3940
allowEditbooleanIndicates whether the grid is editable. See also Show Add New Row Iconjs-api/src/interfaces/d4.ts:3678
allowRowDraggingbooleanWhether row (rows) can be dragged out of the grid.js-api/src/interfaces/d4.ts:3793
allowRowReorderingbooleanDrag any cell (except the row number) to reorder rows Drag the row number column to select rowsjs-api/src/interfaces/d4.ts:3749
allowRowResizingbooleanResize rows by dragging the border between rows on a row header. Applicable only to grid.js-api/src/interfaces/d4.ts:3799
allowRowSelectionbooleanMouse drag on the rows headers selects rows Ctrl+click to invert selection Shift+mouse drag to select multiple rows Ctrl+Shift+mouse drag to unselectjs-api/src/interfaces/d4.ts:3758
allowSortingbooleanWhether to sort when user double-clicks on the column headerjs-api/src/interfaces/d4.ts:3752
allowStickyMeta"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:3902
autoResizeColumnWidthsbooleanAutomatically resize column widths when row height is resizedjs-api/src/interfaces/d4.ts:3781
autoScrollColumnIntoViewbooleanAutomatically scroll column into view when this column becomes currentjs-api/src/interfaces/d4.ts:3774
autoScrollRowIntoViewbooleanAutomatically scroll current row into view when it is set from outside (for instance, as a result of clicking on a point in a scatter plot)js-api/src/interfaces/d4.ts:3778
backColornumber-js-api/src/interfaces/d4.ts:3855
categoricalColorSchemenumber[]Applies only to columns with 100+ categories; below that, the column's color coding is used.js-api/src/interfaces/d4.ts:3916
cellStyleany-js-api/src/interfaces/d4.ts:3920
cellTextColornumber-js-api/src/interfaces/d4.ts:3863
colHeaderBackColornumber-js-api/src/interfaces/d4.ts:3859
colHeaderFontstring-js-api/src/interfaces/d4.ts:3830
colHeaderHeightnumberColumn header height. If not specified, it is calculated automatically. See also Col Labels Orientation, Horz Col Labels Heightjs-api/src/interfaces/d4.ts:3700
colHeaderMouseOverTextColornumber-js-api/src/interfaces/d4.ts:3861
colHeaderTextColornumber-js-api/src/interfaces/d4.ts:3857
colLabelsOrientation"Auto" | "Horz" | "Vert"Orientation of the column header text. In spreadsheet mode, it defaults to horizontal no matter how small the columns are. In heat map mode, it depends on whether the text can fit in the area.js-api/src/interfaces/d4.ts:3835
colorCoding"Auto" | "All" | "None"Color-coding that applies to all columns. Additionally, each column can be individually color-coded.js-api/src/interfaces/d4.ts:3824
columnHeaderTypesstring[]-js-api/src/interfaces/d4.ts:3918
columnsany[]-js-api/src/interfaces/d4.ts:3924
controlsFontstring-js-api/src/interfaces/d4.ts:3674
currentCellTextColornumber-js-api/src/interfaces/d4.ts:3865
currentRowCellStyleany-js-api/src/interfaces/d4.ts:3922
currentRowColornumber-js-api/src/interfaces/d4.ts:3849
defaultCellFontstring-js-api/src/interfaces/d4.ts:3826
descriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.js-api/src/interfaces/d4.ts:3950
descriptionPosition"Left" | "Right" | "Top" | "Bottom"-js-api/src/interfaces/d4.ts:3962
descriptionVisibilityMode"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:3964
drawEveryRowbooleanIndicates the way colors are sampled in the heatmap mode when there is not enough pixels on the screen for each row: True: each row is draws (but the result is blended and the resulting color might not represent any row) False: a row is sampled and then drawn as one pixel (but non-sampled rows do not get drawn at all) Applicable only to heatmap.js-api/src/interfaces/d4.ts:3806
extendLastColumnboolean-js-api/src/interfaces/d4.ts:3795
filterstringFormula that filters out rows to show. Examples: ${AGE} > 20 or ${WEIGHT / 2)} > 100, ${SEVERITY} == 'Medium', ${RACE}.endsWith('sian')js-api/src/interfaces/d4.ts:3938
frozenColumnsnumber-js-api/src/interfaces/d4.ts:3818
globalColorScalingbooleantrue: colors are scaled based on the global min/max in all numerical columns false: colors are scaled based on the column min/max. Applicable only to heatmap.js-api/src/interfaces/d4.ts:3872
heatmapColorsbooleanWhether the heatmap should be color-coded (you might want to do it programmatically) See also [globalColorScaling]js-api/src/interfaces/d4.ts:3876
heatmapHorzScrollnumber[]Heatmap horizontal scroll positions (maxRangeValue, minValue, maxValue)js-api/src/interfaces/d4.ts:3905
heatmapVertScrollnumber[]Heatmap vertical scroll positions (maxRangeValue, minValue, maxValue)js-api/src/interfaces/d4.ts:3908
helpstringHelp to be shown when user clicks on the '?' icon on top. Could either be in markdown, or a URL (starting with '/' or 'http').js-api/src/interfaces/d4.ts:3954
horzColLabelsHeightnumberHeight of the column labels when the orientation is horizontal, and Col Header Height is not specified.js-api/src/interfaces/d4.ts:3708
initializationFunctionstringNamespace-qualified function that gets executed when a viewer is initializedjs-api/src/interfaces/d4.ts:3957
isGridbooleanIndicates whether the control is in the grid or heatmap mode. Typically, you don't need to change it manually.js-api/src/interfaces/d4.ts:3729
isHeatmapboolean-js-api/src/interfaces/d4.ts:3926
linearColorSchemenumber[]-js-api/src/interfaces/d4.ts:3913
marginBottomnumber-js-api/src/interfaces/d4.ts:3900
marginLeftnumber-js-api/src/interfaces/d4.ts:3894
marginRightnumber-js-api/src/interfaces/d4.ts:3898
marginTopnumber-js-api/src/interfaces/d4.ts:3896
maxFontSizenumber-js-api/src/interfaces/d4.ts:3828
maxHeatmapColumnsnumber-js-api/src/interfaces/d4.ts:3928
missingValueColornumber-js-api/src/interfaces/d4.ts:3843
mouseOverRowColornumber-js-api/src/interfaces/d4.ts:3851
mouseOverRowStripeColornumber-js-api/src/interfaces/d4.ts:3853
onInitializedScriptstringJavaScript that gets executed after a viewer is initialized and added to the TableViewjs-api/src/interfaces/d4.ts:3960
pinnedRowColumnNamesstring[]-js-api/src/interfaces/d4.ts:3723
pinnedRowValuesstring[]-js-api/src/interfaces/d4.ts:3725
rowHeaderBackColornumber-js-api/src/interfaces/d4.ts:3867
rowHeightnumberApplicable only to gridjs-api/src/interfaces/d4.ts:3711
rowSource"All" | "Filtered" | "Selected" | "SelectedOrCurrent" | "FilteredSelected" | "MouseOverGroup" | "CurrentRow" | "MouseOverRow"Determines the rows shown on the plot.js-api/src/interfaces/d4.ts:3931
rowTooltipstringNewline-separated list of column names to be used in a tooltip. Requires showTooltip to be enabled.js-api/src/interfaces/d4.ts:3892
selectedColsColornumber-js-api/src/interfaces/d4.ts:3847
selectedRowsColornumber-js-api/src/interfaces/d4.ts:3845
showAddNewRowIconbooleanWhen [allowEditable] is true, shows the last virtual row that the user can edit. This row gets appended to the underlying table as soon as any value is entered. The grid should also be in the editable modejs-api/src/interfaces/d4.ts:3683
showCellTooltipboolean-js-api/src/interfaces/d4.ts:3883
showColumnGridlinesboolean-js-api/src/interfaces/d4.ts:3783
showColumnGroupsboolean-js-api/src/interfaces/d4.ts:3763
showColumnLabelsboolean-js-api/src/interfaces/d4.ts:3693
showColumnTooltipboolean-js-api/src/interfaces/d4.ts:3888
showContextMenubooleanWhether the context menu is shownjs-api/src/interfaces/d4.ts:3809
showCurrentCellOutlineboolean-js-api/src/interfaces/d4.ts:3820
showCurrentRowIndicatorbooleanIndicates current row with the Current Row Color.js-api/src/interfaces/d4.ts:3717
showDefaultPopupMenubooleanWhether items applicable to all viewers (such as Pickup Style) should be shown in a popup menu. Also requires Show Context Menu.js-api/src/interfaces/d4.ts:3736
showFriendlyNamebooleanWhen checked, friendly name gets shown underneath the column name.js-api/src/interfaces/d4.ts:3696
showHeatmapScrollbarsbooleanWhether to show scrollbars in the heatmap mode Note that scrollbars will still be visible if they are not "expanded"js-api/src/interfaces/d4.ts:3816
showLabels"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:3881
showMouseOverRowIndicatorbooleanIndicates mouse-over row by drawing a vertical stripe on the row headerjs-api/src/interfaces/d4.ts:3714
showReadOnlyNotificationsbooleanWhether to show notifications when the user tries to edit a read-only tablejs-api/src/interfaces/d4.ts:3812
showRemoveRowIconbooleanWhen [allowEditable] is true, allows user to remove the mouse over row. The grid should also be in the editable modejs-api/src/interfaces/d4.ts:3691
showRowGridlinesboolean-js-api/src/interfaces/d4.ts:3767
showRowHeaderboolean-js-api/src/interfaces/d4.ts:3765
showTitleboolean-js-api/src/interfaces/d4.ts:3944
showTooltipstringControls grid tooltip visibilityjs-api/src/interfaces/d4.ts:3879
showVisibleColumnsInTooltipbooleanInclude currently visible columns in a tooltipjs-api/src/interfaces/d4.ts:3886
sortByColumnNamesstring[]-js-api/src/interfaces/d4.ts:3719
sortTypesboolean[]-js-api/src/interfaces/d4.ts:3721
syncNewColumnsbooleanDetermines whether newly added columns are added to the gridjs-api/src/interfaces/d4.ts:3911
tablestring-js-api/src/interfaces/d4.ts:3946
titlestring-js-api/src/interfaces/d4.ts:3942
topLevelDefaultMenubooleanWhen set to false, default menu appears under the 'Grid' submenu.js-api/src/interfaces/d4.ts:3732
vertColLabelsHeightnumberHeight of the column labels when the orientation is vertical, and Col Header Height is not specified.js-api/src/interfaces/d4.ts:3704