@@ -15,9 +15,8 @@ interface State {
15
15
*/
16
16
export class EJ2Grid extends StreamlitComponentBase < State > {
17
17
18
- constructor ( props : any ) {
18
+ constructor ( props : any ) {
19
19
super ( props ) ;
20
- import ( './themes/' + this . props . args . params . theme + '.css' ) ;
21
20
this . state = { refreshed : 1 }
22
21
}
23
22
@@ -82,54 +81,57 @@ export class EJ2Grid extends StreamlitComponentBase<State> {
82
81
83
82
84
83
return (
85
- < GridComponent ref = { grid => this . gridInstance = grid }
86
- dataSource = { this . props . args . params . data }
87
- toolbar = { this . props . args . params . toolbarItems }
88
- toolbarClick = { this . toolbarClick . bind ( this ) }
89
- allowExcelExport = { this . props . args . params . allowExcelExport }
90
- allowKeyboard = { this . props . args . params . allowKeyboard }
91
- allowMultiSorting = { this . props . args . params . allowMultiSorting }
92
- allowPdfExport = { this . props . args . params . allowPdfExport }
93
- allowReordering = { this . props . args . params . allowReordering }
94
- allowRowDragAndDrop = { this . props . args . params . allowRowDragAndDrop }
95
- allowSelection = { this . props . args . params . allowSelection }
96
- allowTextWrap = { this . props . args . params . allowTextWrap }
97
- enableAdaptiveUI = { this . props . args . params . enableAdaptiveUI }
98
- enableColumnVirtualization = { this . props . args . params . enableColumnVirtualization }
99
- enableHeaderFocus = { this . props . args . params . enableHeaderFocus }
100
- enableHover = { this . props . args . params . enableHover }
101
- enableImmutableMode = { this . props . args . params . enableImmutableMode }
102
- enableInfiniteScrolling = { this . props . args . params . enableInfiniteScrolling } infiniteScrollSettings = { this . props . args . params . infiniteScrollSettings }
103
- enablePersistence = { this . props . args . params . enablePersistence }
104
- enableStickyHeader = { this . props . args . params . enableStickyHeader }
105
- enableVirtualMaskRow = { this . props . args . params . enableVirtualMaskRow }
106
- enableVirtualization = { this . props . args . params . enableVirtualization }
107
- showColumnChooser = { this . props . args . params . showColumnChooser }
108
- showColumnMenu = { this . props . args . params . showColumnMenu }
109
- childGrid = { this . props . args . params . childGrid }
110
- editSettings = { this . props . args . params . editSettings }
111
- allowGrouping = { this . props . args . params . allowGrouping } groupSettings = { this . props . args . params . groupSettings }
112
- allowPaging = { this . props . args . params . allowPaging } pageSettings = { this . props . args . params . pageSettings }
113
- allowFiltering = { this . props . args . params . allowFiltering } filterSettings = { this . props . args . params . filterSettings }
114
- allowSorting = { this . props . args . params . allowSorting } sortSettings = { this . props . args . params . sortSettings }
115
- searchSettings = { this . props . args . params . searchSettings }
116
- selectionSettings = { this . props . args . params . selectionSettings }
117
- textWrapSettings = { this . props . args . params . textWrapSettings }
118
- allowResizing = { this . props . args . params . allowResizing }
119
- height = { this . props . args . params . height }
120
- width = { this . props . args . params . width }
121
- rowHeight = { this . props . args . params . rowHeight }
122
- rowRenderingMode = { this . props . args . params . rowRenderingMode }
123
- selectedRowIndex = { this . props . args . params . selectedRowIndex }
124
- printMode = { this . props . args . params . printMode }
125
- frozenColumns = { this . props . args . params . frozenColumns }
126
- gridLines = { this . props . args . params . gridLines }
127
- frozenRows = { this . props . args . params . frozenRows } >
128
- < ColumnsDirective >
129
- { totalColumns }
130
- </ ColumnsDirective >
131
- < Inject services = { [ Page , Sort , Filter , Group , Toolbar , InfiniteScroll , ExcelExport , PdfExport , Reorder , Resize , RowDD , Edit , Freeze , Search , DetailRow , ColumnChooser , ColumnMenu ] } />
132
- </ GridComponent >
84
+ < >
85
+ < link rel = "stylesheet" href = { this . props . args . params . theme } />
86
+ < GridComponent ref = { grid => this . gridInstance = grid }
87
+ dataSource = { this . props . args . params . data }
88
+ toolbar = { this . props . args . params . toolbarItems }
89
+ toolbarClick = { this . toolbarClick . bind ( this ) }
90
+ allowExcelExport = { this . props . args . params . allowExcelExport }
91
+ allowKeyboard = { this . props . args . params . allowKeyboard }
92
+ allowMultiSorting = { this . props . args . params . allowMultiSorting }
93
+ allowPdfExport = { this . props . args . params . allowPdfExport }
94
+ allowReordering = { this . props . args . params . allowReordering }
95
+ allowRowDragAndDrop = { this . props . args . params . allowRowDragAndDrop }
96
+ allowSelection = { this . props . args . params . allowSelection }
97
+ allowTextWrap = { this . props . args . params . allowTextWrap }
98
+ enableAdaptiveUI = { this . props . args . params . enableAdaptiveUI }
99
+ enableColumnVirtualization = { this . props . args . params . enableColumnVirtualization }
100
+ enableHeaderFocus = { this . props . args . params . enableHeaderFocus }
101
+ enableHover = { this . props . args . params . enableHover }
102
+ enableImmutableMode = { this . props . args . params . enableImmutableMode }
103
+ enableInfiniteScrolling = { this . props . args . params . enableInfiniteScrolling } infiniteScrollSettings = { this . props . args . params . infiniteScrollSettings }
104
+ enablePersistence = { this . props . args . params . enablePersistence }
105
+ enableStickyHeader = { this . props . args . params . enableStickyHeader }
106
+ enableVirtualMaskRow = { this . props . args . params . enableVirtualMaskRow }
107
+ enableVirtualization = { this . props . args . params . enableVirtualization }
108
+ showColumnChooser = { this . props . args . params . showColumnChooser }
109
+ showColumnMenu = { this . props . args . params . showColumnMenu }
110
+ childGrid = { this . props . args . params . childGrid }
111
+ editSettings = { this . props . args . params . editSettings }
112
+ allowGrouping = { this . props . args . params . allowGrouping } groupSettings = { this . props . args . params . groupSettings }
113
+ allowPaging = { this . props . args . params . allowPaging } pageSettings = { this . props . args . params . pageSettings }
114
+ allowFiltering = { this . props . args . params . allowFiltering } filterSettings = { this . props . args . params . filterSettings }
115
+ allowSorting = { this . props . args . params . allowSorting } sortSettings = { this . props . args . params . sortSettings }
116
+ searchSettings = { this . props . args . params . searchSettings }
117
+ selectionSettings = { this . props . args . params . selectionSettings }
118
+ textWrapSettings = { this . props . args . params . textWrapSettings }
119
+ allowResizing = { this . props . args . params . allowResizing }
120
+ height = { this . props . args . params . height }
121
+ width = { this . props . args . params . width }
122
+ rowHeight = { this . props . args . params . rowHeight }
123
+ rowRenderingMode = { this . props . args . params . rowRenderingMode }
124
+ selectedRowIndex = { this . props . args . params . selectedRowIndex }
125
+ printMode = { this . props . args . params . printMode }
126
+ frozenColumns = { this . props . args . params . frozenColumns }
127
+ gridLines = { this . props . args . params . gridLines }
128
+ frozenRows = { this . props . args . params . frozenRows } >
129
+ < ColumnsDirective >
130
+ { totalColumns }
131
+ </ ColumnsDirective >
132
+ < Inject services = { [ Page , Sort , Filter , Group , Toolbar , InfiniteScroll , ExcelExport , PdfExport , Reorder , Resize , RowDD , Edit , Freeze , Search , DetailRow , ColumnChooser , ColumnMenu ] } />
133
+ </ GridComponent >
134
+ </ >
133
135
)
134
136
}
135
137
0 commit comments