Releases: nhn/tui.grid
Releases · nhn/tui.grid
v4.21.2
Features
BugFixes
v4.21.1
v4.21.0
Features
-
Added feature to reset auto-sizing column widths in
resetColumnWidths
.- To refresh an auto-width column without setting the column width to a specific width, call the
resetColumnWidths
API without arguments.
- To refresh an auto-width column without setting the column width to a specific width, call the
-
Added the feature that is instant applying of built-in editor.
- It works only for built-in select, checkbox(radio), datePicker editor.
- For use this, pass the
instantApply
option totrue
in property of options of editor of column. - If use it, apply new value by clicking a new value in the dropdown layer of built-in editor.
const grid = new tui.Grid({ columns: [ { // ... editor: { type: 'select', options: { listItems: /* ... */, instantApply: true } } }, ] });
- Before use it
- After use it
Bugfixes
- Fixed an error where the dynamic row span did not work properly when scrolling.
- Fixed an issue that occurs an error when finished editing by clicking the other side.
v4.20.3
Bugfixes
- Fixed that destroyed the editor before editing was finished
v4.20.1
Features
- Added option to set tree grid indent width (#1538)
const grid = new tui.Grid({ // ... treeColumnOptions: { // ... indentWidth: 50 }, // ... });
- Added APIs that return added class names (#1561)
ColumnRowgetColumnClassNames(columnName: string): string[]
CellgetRowClassNames(rowKey: number | string): string[]
In the case of a cell, the class name added to the column and row to which the cell corresponds is also returned.getCellClassNames(rowKey: number | string, columnName: string): string[]
In the case of a column, only the class names added to the column in all rows are returned.
Bugfixes
- Fixed that where the summary calculated incorrectly when using the keyboard (#1536)
- Fixed that where dropdown layer in the editor did not move when scrolling (#1542)
- Fixed that dropdown layer in the editor not disappearing (#1545)
- Fixed to the validation works when only data modified (#1559)
Documents
v4.20.0
Features
- Added feature to export filtered data (fix #1459) (#1513)
getFilteredData():
- Added feature to click consecutive row checkboxes with Shift + Click (#1512)
- Added feature to disable context menu (fix #1432) (#1515
- If disable the context menu, the browser default context menu appears when right-click.
const grid = Grid({ // ... contextMenu: null // ... });
- Added feature to column drag and drop (fix #1483) (#1523)
- Click the column header what want to move and drag it to the grid body to start column D&D.
- When start a column dnd, a floating layer for that column header is created in the header area.
- If there is complex columns or a hidden column, the column D&D is disabled.
- If the column to be moved or the column of the destination is a row header column or a tree column, column D&D cannot be performed.
const grid = new tui.Grid({ // ... draggable: true, // ... });
- Added API to return specific column model (#1531)
getColumn(columnName: string): ColumnInfo | null;
- Added feature to enable/disable specific cell (#1530)
- If that the cell is in a row number or draggable column, It is not work.
disableCell(rowKey: RowKey, columnName: string): void enableCell(rowKey: RowKey, columnName: string): void
- Added feature that dynamic rowspan (#1535)
- Can apply a dynamic rowspan to a column by passing an option in the form below.
const grid = new Grid({ // ..., columns: [ { header: 'Name', name: 'name', rowSpan: true }, { header: 'Artist', name: 'artist', rowSpan: true } ], // ... });
Bugfixes
v4.19.4
v4.19.3
Bugfixes
- Fixed that the floatingRow shows incompletely for multiple rows (#1477)
- Fixed that to disable context menu on dummy cells (fix #1463) (#1490)
- Fixed that the wrong rowHeight after DnD (fix #1438) (#1489)
- Fixed that the editing occurs error after filter (fix #1456) (#1487)
- Fixed that incorrect type definition (#1494)
- Fixed that the tree button not to submit (fix #1476) (#1492)
- Fixed that to remove editing layer when filter button clicked (#1493)