stenajs-webui/grid-export
This package adds ability to export Excel (.xlsx) documents.
It exports StandardTableExcelExportButton
component
which takes props config
(StandardTable config) and items
.
It also takes prop filename
which is optional.
Default is exported-spreadsheet
. File extension is added automatically.
When the user clicks the button, the download starts immediately.
Example:
<Column>
<StandardTableExcelExportButton
config={config}
items={items}
filename={"exported-user-list"}
/>
<StandardTable config={config} items={items} />
</Column>
10.0.0
Text
- Now also exported with name
Txt
.
This makes auto-import work properly, since Text
is already defined globally.
StandardTable
- Now uses
Banner
to show no items available message. - Add props
noItemsContentRight
, noItemsContentBottom
and noItemsHeader
to customize the banner. - Sort order icon is on left or right side of column header
label, depending on header alignment.
- Add sort order icon variants, can be set in table config.
There is one option for the whole table, and one per config
which overrides the table setting.
- Row checkbox column can now be sticky.
- Fixed visual bug in column group when column is sticky.
Banner
- Design updated to make it slightly more compact.
Select
- Update
react-select
to 4.3.0. - New components
MultiSelect
and AsyncMultiSelect
replaces isMulti
prop. - New
ChipMultiSelect
component.
DateTextInput
- Moved icon to right side, and changed it to a FlatButton.
This makes the input slightly wider.
Breaking changes
Select
no longer supports isMulti
prop.AsyncSelect
no longer supports isMulti
prop.DateTextInput
is now slightly wider by default.
Dependency updates
Emotion has been updated to major 11.
React has been updated to major 17.
If any of these dependencies are included in your applications
package.json, you should update them.
@emotion/core
is removed.@emotion/react@11.1.5
is added.@emotion/styled@11.3.0
react@17.0.2
react-dom@17.0.2
lodash@4.17.21
csstype@3.0.8
@types/lodash@4.14.168
@types/react@17.0.5
@types/react-dom@17.0.3