Skip to main content

IGridSettings

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

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:1152
allowBlockSelectionbooleanMouse drag on the data cells selects both rows and columnsjs-api/src/interfaces/d4.ts:1204
allowChangeCurrentObjectbooleanWhether the current object (shown in the context panel) is changed when you click on a column header.js-api/src/interfaces/d4.ts:1255
allowColHeaderResizingbooleanResizing column header by dragging the border between the header and the first rowjs-api/src/interfaces/d4.ts:1303
allowColReorderingbooleanReordering columns by dragging the headerjs-api/src/interfaces/d4.ts:1251
allowColResizingbooleanResizing columns by dragging the border between column headersjs-api/src/interfaces/d4.ts:1306
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:1210
allowColumnMenubooleanWhether the "hamburger" menu should be shown for a column when the mouse is over its headerjs-api/src/interfaces/d4.ts:1236
allowContentPanningbooleanRight-click and drag to pan contentjs-api/src/interfaces/d4.ts:1226
allowDynamicMenusboolean-js-api/src/interfaces/d4.ts:1405
allowEditbooleanIndicates whether the grid is editable. See also Show Add New Row Iconjs-api/src/interfaces/d4.ts:1143
allowRowDraggingbooleanWhether row (rows) can be dragged out of the grid.js-api/src/interfaces/d4.ts:1258
allowRowReorderingbooleanDrag any cell (except the row number) to reorder rows Drag the row number column to select rowsjs-api/src/interfaces/d4.ts:1214
allowRowResizingbooleanResize rows by dragging the border between rows on a row header. Applicable only to grid.js-api/src/interfaces/d4.ts:1264
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:1223
allowSortingbooleanWhether to sort when user double-clicks on the column headerjs-api/src/interfaces/d4.ts:1217
allowStickyMeta"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:1367
autoResizeColumnWidthsbooleanAutomatically resize column widths when row height is resizedjs-api/src/interfaces/d4.ts:1246
autoScrollColumnIntoViewbooleanAutomatically scroll column into view when this column becomes currentjs-api/src/interfaces/d4.ts:1239
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:1243
backColornumber-js-api/src/interfaces/d4.ts:1320
categoricalColorSchemenumber[]Applies only to columns with 100+ categories; below that, the column's color coding is used.js-api/src/interfaces/d4.ts:1381
cellStyleany-js-api/src/interfaces/d4.ts:1385
cellTextColornumber-js-api/src/interfaces/d4.ts:1328
colHeaderBackColornumber-js-api/src/interfaces/d4.ts:1324
colHeaderFontstring-js-api/src/interfaces/d4.ts:1295
colHeaderHeightnumberColumn header height. If not specified, it is calculated automatically. See also Col Labels Orientation, Horz Col Labels Heightjs-api/src/interfaces/d4.ts:1165
colHeaderMouseOverTextColornumber-js-api/src/interfaces/d4.ts:1326
colHeaderTextColornumber-js-api/src/interfaces/d4.ts:1322
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:1300
colorCoding"All" | "None" | "Auto"Color-coding that applies to all columns. Additionally, each column can be individually color-coded.js-api/src/interfaces/d4.ts:1289
columnHeaderTypesstring[]-js-api/src/interfaces/d4.ts:1383
columnsany[]-js-api/src/interfaces/d4.ts:1389
controlsFontstring-js-api/src/interfaces/d4.ts:1139
currentCellTextColornumber-js-api/src/interfaces/d4.ts:1330
currentRowCellStyleany-js-api/src/interfaces/d4.ts:1387
currentRowColornumber-js-api/src/interfaces/d4.ts:1314
defaultCellFontstring-js-api/src/interfaces/d4.ts:1291
descriptionstringViewer description that gets shown at the Descriptor Position. Markup is supported.js-api/src/interfaces/d4.ts:1415
descriptionPosition"Top" | "Bottom" | "Left" | "Right"-js-api/src/interfaces/d4.ts:1427
descriptionVisibilityMode"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:1429
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:1271
extendLastColumnboolean-js-api/src/interfaces/d4.ts:1260
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:1403
frozenColumnsnumber-js-api/src/interfaces/d4.ts:1283
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:1337
heatmapColorsbooleanWhether the heatmap should be color-coded (you might want to do it programmatically) See also [globalColorScaling]js-api/src/interfaces/d4.ts:1341
heatmapHorzScrollnumber[]Heatmap horizontal scroll positions (maxRangeValue, minValue, maxValue)js-api/src/interfaces/d4.ts:1370
heatmapVertScrollnumber[]Heatmap vertical scroll positions (maxRangeValue, minValue, maxValue)js-api/src/interfaces/d4.ts:1373
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:1419
horzColLabelsHeightnumberHeight of the column labels when the orientation is horizontal, and Col Header Height is not specified.js-api/src/interfaces/d4.ts:1173
initializationFunctionstringNamespace-qualified function that gets executed when a viewer is initializedjs-api/src/interfaces/d4.ts:1422
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:1194
isHeatmapboolean-js-api/src/interfaces/d4.ts:1391
linearColorSchemenumber[]-js-api/src/interfaces/d4.ts:1378
marginBottomnumber-js-api/src/interfaces/d4.ts:1365
marginLeftnumber-js-api/src/interfaces/d4.ts:1359
marginRightnumber-js-api/src/interfaces/d4.ts:1363
marginTopnumber-js-api/src/interfaces/d4.ts:1361
maxFontSizenumber-js-api/src/interfaces/d4.ts:1293
maxHeatmapColumnsnumber-js-api/src/interfaces/d4.ts:1393
missingValueColornumber-js-api/src/interfaces/d4.ts:1308
mouseOverRowColornumber-js-api/src/interfaces/d4.ts:1316
mouseOverRowStripeColornumber-js-api/src/interfaces/d4.ts:1318
onInitializedScriptstringJavaScript that gets executed after a viewer is initialized and added to the TableViewjs-api/src/interfaces/d4.ts:1425
pinnedRowColumnNamesstring[]-js-api/src/interfaces/d4.ts:1188
pinnedRowValuesstring[]-js-api/src/interfaces/d4.ts:1190
rowHeaderBackColornumber-js-api/src/interfaces/d4.ts:1332
rowHeightnumberApplicable only to gridjs-api/src/interfaces/d4.ts:1176
rowSource"All" | "Filtered" | "Selected" | "SelectedOrCurrent" | "FilteredSelected" | "MouseOverGroup" | "CurrentRow" | "MouseOverRow"Determines the rows shown on the plot.js-api/src/interfaces/d4.ts:1396
rowTooltipstringNewline-separated list of column names to be used in a tooltip. Requires showTooltip to be enabled.js-api/src/interfaces/d4.ts:1357
selectedColsColornumber-js-api/src/interfaces/d4.ts:1312
selectedRowsColornumber-js-api/src/interfaces/d4.ts:1310
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:1148
showCellTooltipboolean-js-api/src/interfaces/d4.ts:1348
showColumnGridlinesboolean-js-api/src/interfaces/d4.ts:1248
showColumnGroupsboolean-js-api/src/interfaces/d4.ts:1228
showColumnLabelsboolean-js-api/src/interfaces/d4.ts:1158
showColumnTooltipboolean-js-api/src/interfaces/d4.ts:1353
showContextMenubooleanWhether the context menu is shownjs-api/src/interfaces/d4.ts:1274
showCurrentCellOutlineboolean-js-api/src/interfaces/d4.ts:1285
showCurrentRowIndicatorbooleanIndicates current row with the Current Row Color.js-api/src/interfaces/d4.ts:1182
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:1201
showFriendlyNamebooleanWhen checked, friendly name gets shown underneath the column name.js-api/src/interfaces/d4.ts:1161
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:1281
showLabels"Auto" | "Always" | "Never"-js-api/src/interfaces/d4.ts:1346
showMouseOverRowIndicatorbooleanIndicates mouse-over row by drawing a vertical stripe on the row headerjs-api/src/interfaces/d4.ts:1179
showReadOnlyNotificationsbooleanWhether to show notifications when the user tries to edit a read-only tablejs-api/src/interfaces/d4.ts:1277
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:1156
showRowGridlinesboolean-js-api/src/interfaces/d4.ts:1232
showRowHeaderboolean-js-api/src/interfaces/d4.ts:1230
showTitleboolean-js-api/src/interfaces/d4.ts:1409
showTooltipstringControls grid tooltip visibilityjs-api/src/interfaces/d4.ts:1344
showVisibleColumnsInTooltipbooleanInclude currently visible columns in a tooltipjs-api/src/interfaces/d4.ts:1351
sortByColumnNamesstring[]-js-api/src/interfaces/d4.ts:1184
sortTypesboolean[]-js-api/src/interfaces/d4.ts:1186
syncNewColumnsbooleanDetermines whether newly added columns are added to the gridjs-api/src/interfaces/d4.ts:1376
tablestring-js-api/src/interfaces/d4.ts:1411
titlestring-js-api/src/interfaces/d4.ts:1407
topLevelDefaultMenubooleanWhen set to false, default menu appears under the 'Grid' submenu.js-api/src/interfaces/d4.ts:1197
vertColLabelsHeightnumberHeight of the column labels when the orientation is vertical, and Col Header Height is not specified.js-api/src/interfaces/d4.ts:1169