o2o_layout
v3.0.77
Published
``` npm install --save o2o-layout ``` Library BigDataVn
Downloads
970
Readme
install
npm install --save o2o-layout
Library BigDataVn
CanAccess Component: check quyền truy cập, render or not render element khi có quyền.
Nodata Component: Show nodata.
Dashboard Layout.
Landing Layout.
Các Model dùng chung cho nhiều dự án như Organizations, Users ...
##StikyTable
- Fixed column
- Sticky sroll
- Automatic check fixed or un-fixed columns based on with of device sreen
- Allow selection
- ....
import { StickyTable } from 'o2o_layout';
demo video: https://nimb.ws/vzPqrC
<StickyTable
rowSelection={{
selectedRowKeys: this.state.selectedRowKeys,
onChange: (selectedRowKeys: any, selectedRows: any) => {
}
}}
setFixedTable={this.setFixedTable} // function calculate fixed column or un-fixed column table
column={columns}
dataSource={sources}
loading={this.props.ui.isLoading}
onRow={(record: contentItem, rowIndex: number) => {
return {
onClick: (event: any) => {
}, // click row
};
}}
title={() => {
return (<p>Table title</p>)
}
/>