ππ‘ The Powerful Component to Display and Edit Data. Experience the Ultimate Data Transformer!
MIT License
Bot releases are hidden (Show)
Published by js87zz about 5 years ago
destroy
API that had been missed. (#626 )Published by js87zz about 5 years ago
Grid.applyTheme('custom', {
row: {
hover: {
background: '#00eeff'
},
even: {
background: '#00eeff'
},
odd: {
background: '#00eeff'
},
dummy: {
background: '#00eeff'
}
}
});
checkAll
, uncheckAll
)const grid = new Grid({
data,
column,
header: {
height: 40,
// apply the align, valign option to all columns in common
valign: 'top' | 'middle' | 'bottom',
align: 'left' | 'center' | 'right',
// need to configure align or valign options of each column
// this option is a higher priority than common option
columns: [
{
name: 'col1',
valign: 'top' | 'middle' | 'bottom',
align: 'left' | 'center' | 'right'
}
]
}
});
Published by js87zz about 5 years ago
Published by js87zz about 5 years ago
auto
. (#592 )onGridMounted
, onGridBeforeDestroyed
)editingStart
, editingFinish
)columnResize
)Published by js87zz about 5 years ago
// grid column option
columns: [
{
name: 'alphabetA',
header: 'alphabetA(desc)',
minWidth: 150,
sortable: true,
sortingType: 'desc',
editor: 'text'
},
{
name: 'alphabetB',
header: 'alphabetB(asc)',
minWidth: 150,
sortable: true,
sortingType: 'asc',
editor: 'text'
},
{
name: 'alphabetC',
header: 'alphabetC(desc)',
minWidth: 150,
sortable: true,
sortingType: 'desc',
editor: 'text'
}
]
Published by js87zz over 5 years ago
finishEditing
instance method for destroying the editing layer. (#509 )
sortingType
option for changing initial sort order. (#525 )element ui date-picker
is that case. Due to date-picker dropdown attached document as an another root element, cannot modify the editing grid value. Because editing layer would be destroyed when mousedown event emitted outside editing area(based DOM element). So we will provide finishEditing
method and the editing layer is only destroyed by changing the focused cell. (#480 )Published by js87zz over 5 years ago
sortingType
option for changing initial sort order. (#494 )Published by js87zz over 5 years ago
Published by js87zz over 5 years ago
Published by js87zz over 5 years ago
Published by seonim-ryu over 5 years ago
rowHeight
option.Published by js87zz over 5 years ago
removing dependencies of Backbone and jQuery
. Now, TOAST UI Grid has no dependency at all! This also means that it's much lighter than before.more stable and reliable developer environment with TypeScript
. Hopefully it can help new contributors to adjust to our internal codebase.Custom Editor
format.dataPicker
can be used through setting editor options.Custom Renderer
format.Custom Renderer
DataSource
is a concept that has completely replaced the previous NetDataSource
more conveniently.DataSource
is much more efficient in dealing with data insertion, manipulation, and deletion internally.title
or head
are replaced with the header
. So that, the option of the column, rowHeader and theme is modified. See the detail here.editOptions
is replaced with the editor options. You can set the name of built-in editor or the constructor of custom editors. If you need options for the editor, another property options
can be used. See the specification for more information._extraData
option has been renamed as _attribute
. See the detail here.column relations
paramter has been changed. The changed parameter type is written here.row headers
is changed for providing the more diverse format. See the more information.event object
of the tree
has been changed. See the detail here.Published by dongwoo-kim over 5 years ago
Published by dongwoo-kim over 5 years ago
We are happy to announce the first alpha release of the version 4. The version 4 is the huge step from the previous version, because we've fully rewritten the entire source code with the modern JS technologies. The most significant changes are listed below.
The main purpose of this release was removing dependencies of Backbone and jQuery. Now, TOAST UI Grid has no dependency at all! This also means that it's much lighter than before. Although this alpha version lacks some of the main features such as Tree Grid and Net Addon, minified version of the bundle file is only 110KB. Compared to pervious version which is more than 300KB (including jQuery and Backbone), it's significant improvement.
The entire source code is rewritten by Typescript. It's for internal implementation only, so it doesn't mean that users should use typescript to use TOAST UI Grid4. It will not effect anything to end users, but we've enjoying more stable and reliable developer environment with TypeScript. Hopefully it can help new contributors to adjust to our internal codebase.
The ability to customize cell editor UI has been the most demanded feature for TOAST UI Grid for a long time. Users used to use the formatter for this purpose, but the formatter is aimed to customize the contents of the cell, not to customize editing UI.
With the release of version 4, the official Cell Editor interface is supported by default in the TOAST UI Grid, so that users can customize the editing UI to meet their own requirements.
More information can be found in the specification.
The cell renderer is more powerful abstraction than formatter option and gives more control of cell rendering behavior to end users. TOAST UI Grid 4 will support official Cell Renderer interface so that users can customize the cell UI to meet their own requirements.
More information can be found in the specification.
Internet Explorer 8 is one of the oldest browsers now. Despite the fact that very few people use it, it has made a lot of tricky bugs and has hindered us from using new tools like webpack 4. So we decided to drop the support of IE8.
The editOptions
is replaced with the editor
options. You can set the name of built-in editor or the constructor of custom editors. If you need options for the editor
, another property editorOptions
can be used. See the specification for more information.
The editOptions.listItem
is also replaced with the editorOptions
options. As this options only effects to the cell editor, if you want to render the text of the item but the value of the item, you should specify the formatter
options. For this use case, we support built-in listItemText
formatter. You can use the listItemText
formatter using the string value like the following code.
const grid = new Grid({
// ...
columns: [
{
name: 'genre',
formatter: 'listItemText',
editor: 'checkbox',
editorOptions: {
listItem: [
{ text: 'Pop', value: '1' },
{ text: 'Rock', value: '2' }
]
}
}
]
});
The useViewMode:false
option was one of the unique feature of the TOAST UI Grid. It enables the cell editors to be enabled always so that users can edit the value of the cell without changing it to "editing-mode". But we've concluded that this feature can be quite tricky to implement if we specify the official CellEditor
interface, because the internal focus/clipboard management system is quite complex and input elements which are always shown might break this system.
In the version 4, useViewMode
option is removed, and editing should be done in the editing-mode. But if you want to emulate the previous behavior of the userViewMode:false
options, you can do it with the custom CellRenderer
. See the specification for more information.
There's been three options for customizing the contents of the cell, which are formatter
, prefix
and postfix
. But we've concluded that prefix
and postfix
can be implemented by formatter
alone, and having three options for one purpose can be rather confusing. Hence, the prefix
and postfix
options will be removed.
toJSON
optionsThe options for converting data to JSON string is removed from the methods listed below.
getCheckedRowKeys
getCheckedRows
getRow
getRowAt
getRows
(-> getData
)enableCheck
-> enableRowCheck
disableCheck
-> disableRowCheck
getRows
-> getData
focusIn
-> startEditing
focusInAt
-> startEditingAt
data[ ]._extraData
-> data[ ]._attributes
Although most of the basic functionalities of the existing TOAST UI Grid is implemented in this release, some features are still in development now. These features are listed below, and will be implemented in the next alpha release.
findRows
setColumns
setColumnWidths
removeCheckedRows
getRowSpanData
isModified
getModifiedRows
restore
getElement
refreshLayout
columns[ ].ignore
data[ ]._extraData.rowspan
header.complexColumns
You can install this release right now. Just use the @next
tag for npm install
like below.
npm install tui-grid@next
Please give this version a try and feel free to give us any feedback!
The next release(4.0.0-alpha.1) will include all the functions listed above and will be released within two weeks. Stay tune!
Published by seonim-ryu over 5 years ago
setHeader()
Β API (#326)string
type of the rowHeaders
option (#322)Published by jung-han over 5 years ago
setColumnTitles()
APIshowColumn()
, hideColumn()
(#290)Published by dongwoo-kim over 5 years ago
fixedHeight
(#269, #274)Published by dongwoo-kim over 5 years ago
getSummaryValue()
API (#257)summary.defaultContent
options (#252)object
type support for setSummaryColumnContent()
(#252)string
type support for summary.columnContent
options (#252)checkedOnly
options of net.request()
only when button column exists (#231)dragmove
when mouse button is not pressed (#253)addCellClassName()
, removeCellClassName()
does not work (#255)validation.dataType
does not work (#203)Published by seonim-ryu almost 6 years ago
jQuery + backbone + underscore
that named tui-grid.full.js
on dist
folder. (Use it only if you need to use a different version of jQuery together)./index.d.ts
) for TypeScript support.Published by seonim-ryu almost 6 years ago
tui-code-snippet
version to 1.5.0 for improving Google Analytics.