@bento-core/paginated-table 1.0.1-CDS.0 → 1.0.1-CDS.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/Add_ALL_Files__BLUE_ButtonREADME.md +86 -0
  2. package/Add_Selected_Files_Orange_button_README.md +81 -0
  3. package/{dist/table/README.md → README.md} +124 -3
  4. package/dist/index.js +13 -0
  5. package/dist/table/ClientController.js +1 -0
  6. package/dist/table/PaginatedTable.js +64 -14
  7. package/dist/table/TableService.js +5 -2
  8. package/dist/table/state/Actions.js +21 -3
  9. package/dist/table/state/Reducer.js +12 -0
  10. package/dist/wrapper/WrapperService.js +1 -1
  11. package/dist/wrapper/components/AddAllFiles/AddAllView.js +36 -14
  12. package/dist/wrapper/components/AddSelectedFiles/AddSelectedFilesController.js +48 -13
  13. package/dist/wrapper/components/AddSelectedFiles/AddSelectedFilesView.js +23 -3
  14. package/dist/wrapper/components/AddToCartDialog/AddToCartDialogView.js +11 -3
  15. package/dist/wrapper/components/ButtonStyle.js +17 -0
  16. package/dist/wrapper/components/ButtonView.js +3 -1
  17. package/dist/wrapper/components/DownloadManifestBtn.js +1 -1
  18. package/dist/wrapper/components/Snackbar/Snackbar.js +1 -1
  19. package/dist/wrapper/components/TextFieldView.js +3 -1
  20. package/dist/wrapper/components/util.js +33 -0
  21. package/package.json +4 -4
  22. package/src/index.js +4 -0
  23. package/src/table/ClientController.js +1 -0
  24. package/src/table/PaginatedTable.js +70 -14
  25. package/src/table/TableService.js +5 -2
  26. package/src/table/state/Actions.js +18 -0
  27. package/src/table/state/Reducer.js +17 -0
  28. package/src/wrapper/WrapperService.js +1 -1
  29. package/src/wrapper/components/AddAllFiles/AddAllView.js +36 -16
  30. package/src/wrapper/components/AddSelectedFiles/AddSelectedFilesController.js +44 -12
  31. package/src/wrapper/components/AddSelectedFiles/AddSelectedFilesView.js +22 -9
  32. package/src/wrapper/components/AddToCartDialog/AddToCartDialogView.js +20 -8
  33. package/src/wrapper/components/ButtonStyle.js +10 -0
  34. package/src/wrapper/components/ButtonView.js +3 -1
  35. package/src/wrapper/components/DownloadManifestBtn.js +1 -1
  36. package/src/wrapper/components/Snackbar/Snackbar.js +1 -1
  37. package/src/wrapper/components/TextFieldView.js +2 -0
  38. package/src/wrapper/components/util.js +26 -0
  39. package/src/table/README.md +0 -253
@@ -1,13 +1,17 @@
1
1
  import React, { useState } from 'react';
2
2
  import { Button } from '@material-ui/core';
3
+ import ToolTip from '@bento-core/tool-tip/src/ToolTip';
3
4
  import clsx from 'clsx';
4
5
  import { getFilesID } from '../../WrapperService';
5
6
  import AddToCartDialogView from '../AddToCartDialog/AddToCartDialogView';
7
+ import ToolTipView from '../TooltipView';
8
+ import addFilesResponseHandler from '../util';
6
9
 
7
10
  const AddAllFilesComponent = (props) => {
8
11
  const {
9
12
  title,
10
13
  clsName,
14
+ classes,
11
15
  section,
12
16
  addFileQuery,
13
17
  responseKeys,
@@ -16,7 +20,13 @@ const AddAllFilesComponent = (props) => {
16
20
  setAlterDisplay,
17
21
  setOpenSnackbar,
18
22
  client,
23
+ tooltipCofig,
24
+ buttonTooltipConfig,
25
+ maxFileLimit = 1000,
26
+ DisplayCustomText,
19
27
  } = props;
28
+
29
+ const { title: tooltipTitle, ...tooltipProps } = buttonTooltipConfig || {};
20
30
  /**
21
31
  * conditionally display dialog view
22
32
  */
@@ -33,19 +43,17 @@ const AddAllFilesComponent = (props) => {
33
43
  variables: activeFilters,
34
44
  query: addFileQuery,
35
45
  });
46
+ let filesInCart = 0;
47
+ if (localStorage.getItem('CartFileIds')) {
48
+ const filesId = JSON.parse(localStorage.getItem('CartFileIds')) || [];
49
+ filesInCart = filesId.length;
50
+ }
51
+
36
52
  fileIds().then((response) => {
37
53
  const data = response[responseKeys[0]];
38
54
  if (data && data.length > 0) {
39
- const isArray = Array.isArray(data[0][responseKeys[1]]);
40
- const ids = data.reduce((acc, id) => {
41
- if (id && id[responseKeys[1]]) {
42
- // if object convert to array
43
- const items = isArray ? id[responseKeys[1]] : [id[responseKeys[1]]];
44
- acc.push(...items);
45
- }
46
- return acc;
47
- }, []);
48
- if (ids.length > 1000) {
55
+ const ids = addFilesResponseHandler(response, responseKeys);
56
+ if (ids.length + filesInCart > maxFileLimit) {
49
57
  setAlterDisplay(true);
50
58
  } else {
51
59
  setOpen(true);
@@ -69,17 +77,29 @@ const AddAllFilesComponent = (props) => {
69
77
 
70
78
  return (
71
79
  <>
72
- <Button
73
- onClick={addAllFiles}
74
- className={clsx(clsName, `${clsName}_${section}`)}
75
- disableRipple
80
+ <ToolTip
81
+ title={tooltipTitle || ''}
82
+ classes={{
83
+ tooltip: classes.customTooltip,
84
+ arrow: classes.customArrow,
85
+ }}
86
+ {...tooltipProps}
76
87
  >
77
- {title}
78
- </Button>
88
+ <Button
89
+ onClick={addAllFiles}
90
+ className={clsx(clsName, `${clsName}_${section}`)}
91
+ disableRipple
92
+ >
93
+ {title}
94
+ </Button>
95
+ </ToolTip>
96
+ {tooltipCofig && (<ToolTipView {...props} />)}
79
97
  <AddToCartDialogView
80
98
  open={openAddDialog}
81
99
  onYesClick={addFilesToCart}
82
100
  onNoClick={toggleOpen}
101
+ DisplayCustomText={DisplayCustomText}
102
+ activeFilters={activeFilters}
83
103
  />
84
104
  </>
85
105
  );
@@ -6,6 +6,7 @@ import { TableContext } from '../../../table/ContextProvider';
6
6
  import { onRowSeclect } from '../../../table/state/Actions';
7
7
  import AddSelectedFileComponent from './AddSelectedFilesView';
8
8
  import { getFilesID } from '../../WrapperService';
9
+ import addFilesResponseHandler from '../util';
9
10
 
10
11
  const AddSelectedFilesController = (props) => {
11
12
  const {
@@ -18,6 +19,9 @@ const AddSelectedFilesController = (props) => {
18
19
  setOpenSnackbar,
19
20
  setAlterDisplay,
20
21
  client,
22
+ maxFileLimit = 1000,
23
+ applyActiveFilter = false,
24
+ activeFilters = {},
21
25
  } = props;
22
26
 
23
27
  const tableContext = useContext(TableContext);
@@ -26,27 +30,55 @@ const AddSelectedFilesController = (props) => {
26
30
  selectedRows = [],
27
31
  dispatch,
28
32
  } = context;
29
- const variables = {};
30
- variables[dataKey] = selectedRows;
33
+
34
+ const activeFilterItems = applyActiveFilter ? activeFilters : {};
35
+
36
+ const variables = {
37
+ first: 10000,
38
+ ...activeFilterItems,
39
+ [dataKey]: selectedRows,
40
+ };
41
+
31
42
  // add selected files id
32
43
  const addSelectedFiles = () => {
33
- const fileIds = getFilesID({
34
- client,
35
- variables,
36
- fileIds: selectedRows,
37
- query: addFileQuery,
38
- });
44
+ if (addFileQuery) {
45
+ const fileIds = getFilesID({
46
+ client,
47
+ variables,
48
+ fileIds: selectedRows,
49
+ query: addFileQuery,
50
+ });
51
+ let filesInCart = 0;
52
+ if (localStorage.getItem('CartFileIds')) {
53
+ const filesId = JSON.parse(localStorage.getItem('CartFileIds')) || [];
54
+ filesInCart = filesId.length;
55
+ }
39
56
 
40
- fileIds().then((response) => {
41
- const ids = response[responseKeys[0]] || [];
42
- if (ids.length >= 1000) {
57
+ fileIds().then((response) => {
58
+ const ids = addFilesResponseHandler(response, responseKeys);
59
+ if (ids.length + filesInCart >= maxFileLimit) {
60
+ setAlterDisplay(true);
61
+ } else {
62
+ addFiles(ids);
63
+ setOpenSnackbar(true);
64
+ dispatch(onRowSeclect([]));
65
+ }
66
+ });
67
+ } else {
68
+ const ids = variables[dataKey];
69
+ let filesInCart = 0;
70
+ if (localStorage.getItem('CartFileIds')) {
71
+ const filesId = JSON.parse(localStorage.getItem('CartFileIds')) || [];
72
+ filesInCart = filesId.length;
73
+ }
74
+ if (ids.length + filesInCart >= maxFileLimit) {
43
75
  setAlterDisplay(true);
44
76
  } else {
45
77
  addFiles(ids);
46
78
  setOpenSnackbar(true);
47
79
  dispatch(onRowSeclect([]));
48
80
  }
49
- });
81
+ }
50
82
  };
51
83
 
52
84
  return (
@@ -30,7 +30,7 @@ export const ToolTipView = (props) => {
30
30
  arrow: classes.customArrow,
31
31
  }}
32
32
  >
33
- <img src={icon || src} alt={alt} />
33
+ <img className="add_selected_file_tooltip_icon" src={icon || src} alt={alt} />
34
34
  </ToolTip>
35
35
  );
36
36
  };
@@ -40,24 +40,37 @@ const AddSelectedFileComponent = (props) => {
40
40
  eventHandler,
41
41
  title,
42
42
  clsName,
43
+ classes,
43
44
  disabled,
44
45
  tooltipCofig,
46
+ buttonTooltipConfig,
45
47
  } = props;
48
+ const { title: tooltipTitle, ...tooltipProps } = buttonTooltipConfig || {};
46
49
 
47
50
  const addFiles = () => {
48
51
  eventHandler();
49
52
  };
53
+
50
54
  return (
51
55
  <>
52
- <Button
53
- onClick={addFiles}
54
- className={clsName}
55
- disableRipple
56
- disabled={disabled}
56
+ <ToolTip
57
+ title={tooltipTitle || ''}
58
+ classes={{
59
+ tooltip: classes.customTooltip,
60
+ arrow: classes.customArrow,
61
+ }}
62
+ {...tooltipProps}
57
63
  >
58
- {title}
59
- </Button>
60
- {tooltipCofig && (<ToolTipView {...props} />)}
64
+ <Button
65
+ onClick={addFiles}
66
+ className={clsName}
67
+ disableRipple
68
+ disabled={disabled}
69
+ >
70
+ {title}
71
+ </Button>
72
+ </ToolTip>
73
+ {tooltipCofig && (<ToolTipView classes={classes} {...props} />)}
61
74
  </>
62
75
  );
63
76
  };
@@ -12,6 +12,8 @@ function AddToCartDialogView(props) {
12
12
  onNoClick,
13
13
  cartWillFull = false,
14
14
  alertMessage,
15
+ DisplayCustomText,
16
+ activeFilters,
15
17
  } = props;
16
18
 
17
19
  if (cartWillFull) {
@@ -32,15 +34,25 @@ function AddToCartDialogView(props) {
32
34
  aria-describedby="alert-dialog-description"
33
35
  >
34
36
  <DialogContent>
35
- <DialogContentText id="alert-dialog-description">
36
- Are you sure to add All Files
37
- {' '}
38
- {numberOfFilesSelected}
39
- {' '}
40
- to cart
41
- </DialogContentText>
37
+ {
38
+ DisplayCustomText ? (
39
+ <DisplayCustomText
40
+ onYesClick={onYesClick}
41
+ onNoClick={onNoClick}
42
+ activeFilters={activeFilters}
43
+ />
44
+ ) : (
45
+ <DialogContentText id="alert-dialog-description">
46
+ Are you sure to add All Files
47
+ {' '}
48
+ {numberOfFilesSelected}
49
+ {' '}
50
+ to cart
51
+ </DialogContentText>
52
+ )
53
+ }
42
54
  </DialogContent>
43
- <DialogActions>
55
+ <DialogActions className="dialog_actions">
44
56
  <Button className="yesBtn" onClick={() => onYesClick()}>
45
57
  Yes
46
58
  </Button>
@@ -0,0 +1,10 @@
1
+ export default () => ({
2
+ customTooltip: {
3
+ border: '#03A383 1px solid',
4
+ },
5
+ customArrow: {
6
+ '&::before': {
7
+ border: '#03A383 1px solid',
8
+ },
9
+ },
10
+ });
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
+ import { withStyles } from '@material-ui/core';
2
3
  import { btnTypes } from './AddFiles';
3
4
  import AddFileButtonView from './ReduxAddFile';
4
5
  import DownloadManifestView from './DownloadManifestBtn';
6
+ import styles from './ButtonStyle';
5
7
 
6
8
  const ButtonView = (props) => {
7
9
  const {
@@ -21,4 +23,4 @@ const ButtonView = (props) => {
21
23
  );
22
24
  };
23
25
 
24
- export default ButtonView;
26
+ export default withStyles(styles)(ButtonView);
@@ -42,7 +42,7 @@ const DownloadManifestView = (props) => {
42
42
  async function fetchData({ queryVariables, table }) {
43
43
  const fetchResult = await client
44
44
  .query({
45
- query: table.api,
45
+ query: table.manifestAPI ? table.manifestAPI : table.api,
46
46
  variables: {
47
47
  ...getQueryVeriables(queryVariables),
48
48
  },
@@ -31,7 +31,7 @@ const SnackbarView = (props) => {
31
31
  <span className="snackBarText">
32
32
  {count}
33
33
  {' '}
34
- File(s) successfully added to your cart
34
+ File(s) successfully added to My Files.
35
35
  </span>
36
36
  </div>
37
37
  )}
@@ -7,6 +7,7 @@ import {
7
7
  const TextFieldView = ({
8
8
  clsName,
9
9
  placeholder,
10
+ ariaLabel,
10
11
  }) => {
11
12
  const [text, setText] = useState('');
12
13
  const cartContext = useContext(CartContext);
@@ -24,6 +25,7 @@ const TextFieldView = ({
24
25
  }}
25
26
  className={clsName}
26
27
  placeholder={placeholder}
28
+ aria-label={ariaLabel}
27
29
  id="multiline-user-coments"
28
30
  />
29
31
  );
@@ -0,0 +1,26 @@
1
+ /**
2
+ * max two response keys
3
+ * add file query response handler
4
+ * return - list of files name/id
5
+ */
6
+ const addFilesResponseHandler = (response, responseKeys = []) => {
7
+ if (responseKeys.length === 2) {
8
+ const data = response[responseKeys[0]];
9
+ if (data && data.length > 0) {
10
+ const isArray = Array.isArray(data[0][responseKeys[1]]);
11
+ const ids = data.reduce((acc, id) => {
12
+ if (id && id[responseKeys[1]]) {
13
+ // if object convert to array
14
+ const items = isArray ? id[responseKeys[1]] : [id[responseKeys[1]]];
15
+ acc.push(...items);
16
+ }
17
+ return acc;
18
+ }, []);
19
+ return [...new Set(ids)];
20
+ }
21
+ return [];
22
+ }
23
+ return response[responseKeys[0]] || [];
24
+ };
25
+
26
+ export default addFilesResponseHandler;
@@ -1,253 +0,0 @@
1
- # PAGINATED TABLE COMPONENT DESIGN
2
-
3
- ### Bento core paginated table design:
4
-
5
- * Use of UseReducer to track table state and local state to display dialog component
6
- * use of useContext to access table state
7
- * Limit use of props drilling
8
- * Core layout defined by Bento Core table component
9
- * Build on top of Mui table (demo - https://mui.com/material-ui/react-table/#custom-pagination-actions)
10
- * Apply SOLID principles in react (https://konstantinlebedev.com/solid-in-react/)
11
-
12
- ## 1 UseReducer configuration
13
-
14
- ### Generate and integrate redux dispatch actions
15
- ```
16
- const initTblState = (initailState) => ({
17
- ...initailState,
18
- title: config.name,
19
- query: config.api,
20
- dataKey: config.dataKey,
21
- columns: configColumn(config.columns),
22
- count: dashboardStats[config.count],
23
- selectedRows: [],
24
- tableMsg: config.tableMsg,
25
- paginationAPIField: config.paginationAPIField,
26
- sortBy: config.defaultSortField,
27
- sortOrder: config.defaultSortDirection,
28
- rowsPerPage: 10,
29
- page: 0,
30
- });
31
- ```
32
- **Paginated Table Init State TABLE-1**
33
- | Table State | Required | description | Configuration |
34
- | :--- | :----:| :----: | ----: |
35
- | title | TRUE | table name (Case, Sample, Files), required for class name | |
36
- | query | TRUE | GraphQL Query for paginated Table (e.g. GET_CASES_OVERVIEW_QUERY) | api |
37
- | dataKey | TRUE | Tracking selected rows (case - dataKey: 'subject_id') | dashboardTabData/tabContainers |
38
- | columns | TRUE | columns defined by dashboardTabData (tabContainers) | add fucntion attribut customCellRender/customColHeaderRender to configure custom cell (see bento frontend) |
39
- | count | TRUE | Total row cound for (Cases, Samples, Files), update based on filter event | |
40
- | selectedRows | TRUE | Tracks selected Rows | |
41
- | tableMsg | TRUE | Display noMatch Msg | dashboardTabData/tabContainers/tableMsg |
42
- | theme | FALSE | override style with themeprovider use ClassName provided by bento-core table to apply style (refer to class name table) | |
43
- | paginationAPIField | TRUE | Access http response data - defined by dashboardTabData (tabContainers) | ```paginationAPIField: 'subjectOverview'```|
44
- | sortBy | TRUE | default sort column | defaultSortField: 'subject_id',|
45
- | sortOrder | FALSE | default sort column 'ASC' | ```defaultSortDirection: 'asc',```|
46
- | rowsPerPage | FALSE | default 10 | |
47
- | page | FALSE | 0 | |
48
- | extendedViewConfig | FALSE | extended view of table header component | refer bento-frontend tabContainers, dashboardTabData.js |
49
-
50
-
51
- ### 2 Importing Component and Configuration
52
- ```
53
- import TableView from 'bento-core/PaginationTable/PaginatedTable';
54
- // active filter json structure
55
- <TableView
56
- initState={initTblState}
57
- themeConfig={themeConfig}
58
- activeFilters={activeFilters}
59
- totalRowCount={dashboardStats[config.count]}
60
- activeTab={activeTab}
61
- />
62
- ```
63
-
64
- **Paginated Table Props Config TABLE-2**
65
- | Table | Required | description | Configuration |
66
- | :--- | :----:| :----: | ----: |
67
- | table state | TRUE | as describe on TABLE-1 | |
68
- | viewConfig | FALSE | (Optional) table view config, set hide/diaply pagination above table header | |
69
- | themeConfig | FALSE | override style with themeprovider use ClassName provided by bento-core table to apply style (refer to class name table) | |
70
- | totalRowCount | TRUE | Total row cound for (Cases, Samples, Files), update based on filter event | |
71
- | activeTab | TRUE | prevents http call for inactive tabs (dashboard) /set true to myFile cart | |
72
-
73
- ## 3 Table component themeConfig Configuration
74
- ```
75
- export const tblHeader = {
76
- MuiTableSortLabel: {
77
- root: {
78
- ...define style
79
- },
80
- },
81
- };
82
-
83
- export const tblPgn = {
84
- MuiTablePagination: {
85
- root: {
86
- paddingRight: '50px',
87
- borderTop: '5px solid #e7e5e5',
88
- borderBottom: '3px solid #e7e5e5',
89
- },
90
- toolbar: {
91
- minHeight: '45px',
92
- },
93
- },
94
- };
95
- // define mui styles for table component
96
- export const themeConfig = {
97
- tblHeader,
98
- tblTopPgn,
99
- tblPgn,
100
- tblBody,
101
- };
102
- ```
103
-
104
- ## 3 Table state Context provider Configuration
105
- ```
106
- Reference - TabPanel.js (bento-frontend)
107
-
108
- import {
109
- TableContextProvider,
110
- TableView,
111
- Wrapper,
112
- } from '@bento-core/paginated-table';
113
-
114
- const initTblState = (initailState) => ({
115
- ...initailState,
116
- title: config.name,
117
- query: config.api,
118
- paginationAPIField: config.paginationAPIField,
119
- dataKey: config.dataKey,
120
- columns: configColumn(config.columns),
121
- count: dashboardStats[config.count],
122
- selectedRows: [],
123
- enableRowSelection: config.enableRowSelection,
124
- tableMsg: config.tableMsg,
125
- sortBy: config.defaultSortField,
126
- sortOrder: config.defaultSortDirection,
127
- extendedViewConfig: config.extendedViewConfig,
128
- rowsPerPage: 10,
129
- page: 0,
130
- });
131
-
132
- <TableContextProvider>
133
- <Wrapper
134
- wrapConfig={configWrapper(config, wrapperConfig)}
135
- customTheme={customTheme}
136
- classes={classes}
137
- section={config.name}
138
- >
139
- <Grid container>
140
- <Grid item xs={12} id={config.tableID}>
141
- <TableView
142
- initState={initTblState}
143
- themeConfig={themeConfig}
144
- queryVariables={activeFilters}
145
- totalRowCount={dashboardStats[config.count]}
146
- activeTab={activeTab}
147
- />
148
- </Grid>
149
- </Grid>
150
- </Wrapper>
151
- </TableContextProvider>
152
-
153
- //child component
154
-
155
- import { TableContext } from 'bento-core';
156
-
157
- const tableContext = useContext(TableContext);
158
-
159
- ```
160
- TableContextProvider provides table state to Wrapper Component or it can be used in higher parent component as needed.
161
-
162
- ####
163
-
164
- ## 4 Wrapper Configuration:
165
- Wrapper component around table compnent.
166
- 1. ADD ALL FILES button
167
- 2. ADD SELECTED ROWS button
168
- 3. Go to My File link
169
-
170
- ```
171
- /**
172
- * Configuration display component based on index
173
- * CAUTION: If table is in wrapper component provide position of table component
174
- */
175
- export const wrapperConfig = [{
176
- container: 'buttons',
177
- size: 'xl',
178
- clsName: 'container_header',
179
- items: [
180
- {
181
- title: 'ADD ALL FILES',
182
- clsName: 'add_all_button',
183
- type: types.BUTTON,
184
- role: btnTypes.ADD_ALL_FILES,
185
- btnType: btnTypes.ADD_ALL_FILES,
186
- conditional: false,
187
- alertMessage,
188
- },
189
- {
190
- title: 'ADD SELECTED FILES',
191
- clsName: 'add_selected_button',
192
- type: types.BUTTON,
193
- role: btnTypes.ADD_SELECTED_FILES,
194
- btnType: btnTypes.ADD_SELECTED_FILES,
195
- tooltipCofig: tooltipContent,
196
- conditional: true,
197
- }],
198
- },
199
- {
200
- container: 'paginatedTable',
201
- paginatedTable: true,
202
- },
203
- {
204
- container: 'buttons',
205
- size: 'xl',
206
- clsName: 'container_footer',
207
- items: [
208
- {
209
- title: 'ADD SELECTED FILES',
210
- clsName: 'add_selected_button',
211
- type: types.BUTTON,
212
- role: btnTypes.ADD_SELECTED_FILES,
213
- btnType: btnTypes.ADD_SELECTED_FILES,
214
- tooltipCofig: tooltipContent,
215
- conditional: true,
216
- }],
217
- },
218
- {
219
- container: 'buttons',
220
- size: 'xl',
221
- clsName: 'container_footer_link',
222
- items: [
223
- {
224
- title: 'Go to Cart >',
225
- clsName: 'go_to_cart',
226
- url: '#/fileCentricCart',
227
- type: types.LINK,
228
- }],
229
- },
230
- ];
231
- ```
232
-
233
- Each item in headerConfig and footerConfig represent container
234
- **container Config TABLE-3**
235
- headerConfig - upper component on the table
236
- footerConfig - button component on the table
237
- | Attris | Required | description | Configuration |
238
- | :--- | :----:| :----: | ----: |
239
- | container | TRUE | describe container | |
240
- | size | TRUE | container size | xl, md, sm |
241
- | clsName | TRUE | class name to apply style using themeprovider | |
242
- | item | TRUE | number of button component ***(refer to table 4)*** | |
243
-
244
- **Button component Config TABLE-4**
245
- headerConfig - upper component on the table
246
- | Attris | Required | description | Configuration |
247
- | :--- | :----:| :----: | ----: |
248
- | title | TRUE | button label | 'ADD SELECTED FILES' |
249
- | clsName | TRUE | class name to apply style using themeprovider | |
250
- | type | TRUE | add all files or add selected files| btnTypes.ADD_SELECTED_FILES |
251
- | tooltipCofig | FALSE | appears on side of the refers button | dashboardTabData/ tooltipContent |
252
-
253
-