Skip to main content

IGridSettings

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

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:18
allowBlockSelectionbooleanMouse drag on the data cells selects both rows and columnsjs-api/src/interfaces/d4.ts:70
allowChangeCurrentObjectbooleanWhether the current object (shown in the context panel) is changed when you click on a column header.js-api/src/interfaces/d4.ts:121
allowColHeaderResizingbooleanResizing column header by dragging the border between the header and the first rowjs-api/src/interfaces/d4.ts:169
allowColReorderingbooleanReordering columns by dragging the headerjs-api/src/interfaces/d4.ts:117
allowColResizingbooleanResizing columns by dragging the border between column headersjs-api/src/interfaces/d4.ts:172
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:76
allowColumnMenubooleanWhether the "hamburger" menu should be shown for a column when the mouse is over its headerjs-api/src/interfaces/d4.ts:102
allowContentPanningbooleanRight-click and drag to pan contentjs-api/src/interfaces/d4.ts:92
allowDynamicMenusboolean-js-api/src/interfaces/d4.ts:271
allowEditbooleanIndicates whether the grid is editable. See also Show Add New Row Iconjs-api/src/interfaces/d4.ts:9
allowRowDraggingbooleanWhether row (rows) can be dragged out of the grid.js-api/src/interfaces/d4.ts:124
allowRowReorderingbooleanDrag any cell (except the row number) to reorder rows Drag the row number column to select rowsjs-api/src/interfaces/d4.ts:80
allowRowResizingbooleanResize rows by dragging the border between rows on a row header. Applicable only to grid.js-api/src/interfaces/d4.ts:130
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:89
allowSortingbooleanWhether to sort when user double-clicks on the column headerjs-api/src/interfaces/d4.ts:83
allowStickyMeta"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:233
autoResizeColumnWidthsbooleanAutomatically resize column widths when row height is resizedjs-api/src/interfaces/d4.ts:112
autoScrollColumnIntoViewbooleanAutomatically scroll column into view when this column becomes currentjs-api/src/interfaces/d4.ts:105
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:109
backColornumber-js-api/src/interfaces/d4.ts:186
categoricalColorSchemenumber[]Applies only to columns with 100+ categories; below that, the column's color coding is used.js-api/src/interfaces/d4.ts:247
cellStyleany-js-api/src/interfaces/d4.ts:251
cellTextColornumber-js-api/src/interfaces/d4.ts:194
colHeaderBackColornumber-js-api/src/interfaces/d4.ts:190
colHeaderFontstring-js-api/src/interfaces/d4.ts:161
colHeaderHeightnumberColumn header height. If not specified, it is calculated automatically. See also Col Labels Orientation, Horz Col Labels Heightjs-api/src/interfaces/d4.ts:31
colHeaderMouseOverTextColornumber-js-api/src/interfaces/d4.ts:192
colHeaderTextColornumber-js-api/src/interfaces/d4.ts:188
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:166
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:155
columnHeaderTypesstring[]-js-api/src/interfaces/d4.ts:249
columnsany[]-js-api/src/interfaces/d4.ts:255
controlsFontstring-js-api/src/interfaces/d4.ts:5
currentCellTextColornumber-js-api/src/interfaces/d4.ts:196
currentRowCellStyleany-js-api/src/interfaces/d4.ts:253
currentRowColornumber-js-api/src/interfaces/d4.ts:180
defaultCellFontstring-js-api/src/interfaces/d4.ts:157
descriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.js-api/src/interfaces/d4.ts:281
descriptionPosition"Left" | "Right" | "Top" | "Bottom"-js-api/src/interfaces/d4.ts:293
descriptionVisibilityMode"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:295
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:137
extendLastColumnboolean-js-api/src/interfaces/d4.ts:126
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:269
frozenColumnsnumber-js-api/src/interfaces/d4.ts:149
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:203
heatmapColorsbooleanWhether the heatmap should be color-coded (you might want to do it programmatically) See also [globalColorScaling]js-api/src/interfaces/d4.ts:207
heatmapHorzScrollnumber[]Heatmap horizontal scroll positions (maxRangeValue, minValue, maxValue)js-api/src/interfaces/d4.ts:236
heatmapVertScrollnumber[]Heatmap vertical scroll positions (maxRangeValue, minValue, maxValue)js-api/src/interfaces/d4.ts:239
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:285
horzColLabelsHeightnumberHeight of the column labels when the orientation is horizontal, and Col Header Height is not specified.js-api/src/interfaces/d4.ts:39
initializationFunctionstringNamespace-qualified function that gets executed when a viewer is initializedjs-api/src/interfaces/d4.ts:288
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:60
isHeatmapboolean-js-api/src/interfaces/d4.ts:257
linearColorSchemenumber[]-js-api/src/interfaces/d4.ts:244
marginBottomnumber-js-api/src/interfaces/d4.ts:231
marginLeftnumber-js-api/src/interfaces/d4.ts:225
marginRightnumber-js-api/src/interfaces/d4.ts:229
marginTopnumber-js-api/src/interfaces/d4.ts:227
maxFontSizenumber-js-api/src/interfaces/d4.ts:159
maxHeatmapColumnsnumber-js-api/src/interfaces/d4.ts:259
missingValueColornumber-js-api/src/interfaces/d4.ts:174
mouseOverRowColornumber-js-api/src/interfaces/d4.ts:182
mouseOverRowStripeColornumber-js-api/src/interfaces/d4.ts:184
onInitializedScriptstringJavaScript that gets executed after a viewer is initialized and added to the TableViewjs-api/src/interfaces/d4.ts:291
pinnedRowColumnNamesstring[]-js-api/src/interfaces/d4.ts:54
pinnedRowValuesstring[]-js-api/src/interfaces/d4.ts:56
rowHeaderBackColornumber-js-api/src/interfaces/d4.ts:198
rowHeightnumberApplicable only to gridjs-api/src/interfaces/d4.ts:42
rowSource"All" | "Filtered" | "Selected" | "SelectedOrCurrent" | "FilteredSelected" | "MouseOverGroup" | "CurrentRow" | "MouseOverRow"Determines the rows shown on the plot.js-api/src/interfaces/d4.ts:262
rowTooltipstringNewline-separated list of column names to be used in a tooltip. Requires showTooltip to be enabled.js-api/src/interfaces/d4.ts:223
selectedColsColornumber-js-api/src/interfaces/d4.ts:178
selectedRowsColornumber-js-api/src/interfaces/d4.ts:176
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:14
showCellTooltipboolean-js-api/src/interfaces/d4.ts:214
showColumnGridlinesboolean-js-api/src/interfaces/d4.ts:114
showColumnGroupsboolean-js-api/src/interfaces/d4.ts:94
showColumnLabelsboolean-js-api/src/interfaces/d4.ts:24
showColumnTooltipboolean-js-api/src/interfaces/d4.ts:219
showContextMenubooleanWhether the context menu is shownjs-api/src/interfaces/d4.ts:140
showCurrentCellOutlineboolean-js-api/src/interfaces/d4.ts:151
showCurrentRowIndicatorbooleanIndicates current row with the Current Row Color.js-api/src/interfaces/d4.ts:48
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:67
showFriendlyNamebooleanWhen checked, friendly name gets shown underneath the column name.js-api/src/interfaces/d4.ts:27
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:147
showLabels"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:212
showMouseOverRowIndicatorbooleanIndicates mouse-over row by drawing a vertical stripe on the row headerjs-api/src/interfaces/d4.ts:45
showReadOnlyNotificationsbooleanWhether to show notifications when the user tries to edit a read-only tablejs-api/src/interfaces/d4.ts:143
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:22
showRowGridlinesboolean-js-api/src/interfaces/d4.ts:98
showRowHeaderboolean-js-api/src/interfaces/d4.ts:96
showTitleboolean-js-api/src/interfaces/d4.ts:275
showTooltipstringControls grid tooltip visibilityjs-api/src/interfaces/d4.ts:210
showVisibleColumnsInTooltipbooleanInclude currently visible columns in a tooltipjs-api/src/interfaces/d4.ts:217
sortByColumnNamesstring[]-js-api/src/interfaces/d4.ts:50
sortTypesboolean[]-js-api/src/interfaces/d4.ts:52
syncNewColumnsbooleanDetermines whether newly added columns are added to the gridjs-api/src/interfaces/d4.ts:242
tablestring-js-api/src/interfaces/d4.ts:277
titlestring-js-api/src/interfaces/d4.ts:273
topLevelDefaultMenubooleanWhen set to false, default menu appears under the 'Grid' submenu.js-api/src/interfaces/d4.ts:63
vertColLabelsHeightnumberHeight of the column labels when the orientation is vertical, and Col Header Height is not specified.js-api/src/interfaces/d4.ts:35