1.17.2 • Published 2 years ago

grid-component-react-ex v1.17.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

React - Grid component

Reusable grid component

npm install grid-component-react-ex

Required library for the button and arrays

npm i @fluentui/react
npm i @fluentui/react-hooks

You’ll need to install React and PropTypes separately since those dependencies aren’t included in the package.

<GridComponent
Table={Table} //Name of entity
SearchBoxComponent={SearchBoxComponent} //Search component input field
SearchBoxClass={SearchBoxClass} //Search componet name of classes
PlaceHolderText={PlaceHolderText} //Search componet placeholder text
SearchBoxStyle={SearchBoxStyle} //Search component style
RemoveSearch={RemoveSearch} //Name of localstorage key. to remove search data
setFilterBySearch={setFilterBySearch} //Set filter data function, where set filter information
SearchString={SearchString} //Search string state variable
DisplayExport={DisplayExport} //Allow to display export or not (true | false)
IsAllowExport={IsAllowExport} //Allow to export file or not (true | false)
IsAllowAllButtons={IsAllowAllButtons} //Allow to display all action button (crud button)
DefaultButton={DefaultButton} //Button Component
ExportIcon={ExportIcon} //Icon props
ExportText={ExportText} //Button text props
ExportClass={ExportClass} //Button classNames props
PreviewPDFReport={PreviewPDFReport} //Export PDF function
FilterClass={FilterClass} //Filter button className
FilterSecondaryText={FilterSecondaryText} //Second filter button text custom filter
FilterButtonText={FilterButtonText} //Filter button text single filter
FilterIcon={FilterIcon} //Filter icon
FetchAdvanceFilterData={FetchAdvanceFilterData} //Add filter api 
SelectedColumn={SelectedColumn} //Array of selected column
FilterBySearch={FilterBySearch} //Array already applied filters
StoreMethod={StoreMethod} //Reducer action method
UrlRoute={UrlRoute} //Name of module to store data in localstorage
PrimaryButton={PrimaryButton} //Button component
IsAllowWriteInfo={IsAllowWriteInfo} //Allow user for add event
AddIcon={AddIcon} //Add (plus) icon
AddButtonClass={AddButtonClass} //Add button classname
OpenAddForm={OpenAddForm} //Function for click event to open add form
AddButtonText={AddButtonText} //Add button text
OpenColumnPanel={OpenColumnPanel} //Toggle function to open panel window (true/false)
RemoveSearchButton={RemoveSearchButton} //Remove search button component
SearchPara={SearchPara} //Search values
SetSearchPara={SetSearchPara} //Set method to change search paramaters
SearchParaElements={SearchParaElements} //Array of object of the whole search elements
SetSearchParaElement={SetSearchParaElement} //Set method to change all the search elements (add/remove/edit)
ParentTable={ParentTable} //Name of module table
JoinTable={JoinTable} //Name of other table name which is used for join
TableHead={TableHead} //Table header part of the header (array of object)
TableBody={TableBody} //Table body part of the data (array of object)
ColumnIndex={ColumnIndex} //Name of column based on database ("id")
SortData={SortData} //Perform sorting using this method 
OrderBy={OrderBy} //Order by values (asc | desc)
SortBy={SortBy} //Name of column based on database
AllowAccess={AllowAccess} //True | False
ModuleId={ModuleId} //Module id based on database record (1 | 2)
CommonGetSiteDataApi={CommonGetSiteDataApi} //Fetch single data api 
GetEditableData={GetEditableData} //Action method of reducer to store data
ViewApi={ViewApi} //Fetch single record api
SetLoading={SetLoading} //true/false
History={History} //History hook
Dispatch={Dispatch} //Dispatch hook
ViewFormUrl={ViewFormUrl} //View page route url
EditFormUrl={EditFormUrl} //Edit form route url
ToggleHideDialog={ToggleHideDialog} //Method to hide/show modal window of confirm while delete call 
ConfirmArchive={ConfirmArchive} //Method to hide/show modal window of confirm while data archive
ExportPdfReport={ExportPdfReport} //Export report function 
ReportName={ReportName} //Define name of exported file 
AllowViewInfo={AllowViewInfo} //Allow to view info or not (true | false)
AllowExportInfo={AllowExportInfo} //Allow to export report or not (true | false) 
AllowEditInfo={AllowEditInfo} //Allow to edit info or not (true | false)
AllowDeleteInfo={AllowDeleteInfo} //Allow to delete info or not (true | false)
AllowPrimaryInfo={AllowPrimaryInfo} //Allow to set detail primary or not (true | false)
AssignApi={AssignApi} //Assign API for client 
SetFieldsAsPrimary={SetFieldsAsPrimary} //Method to change primary set values
EntityName={EntityName} //Name of entity based on backend
FieldId={FieldId} //Module id based on database 
TotalRecord={TotalRecord} //Count of whole data 
PostsPerPage={PostsPerPage} //Count on single load data on page (10 per page)
CheckSpinner={CheckSpinner} //True | False
LoadMoreData={LoadMoreData} //Function to load more 10 data and append to the grid
SpinnerButton={SpinnerButton} //Spinner button component
toggleHideDialog={toggleHideDialog} //Function to hide/show dropdown 
alertClicked={alertClicked} //Function for the removing all the applied filter 
RemoveAdvFilter={RemoveAdvFilter} //Function remove adv filter
MenuItems={menuItems} //Array of dropdown inner option for custom fitler 
AddUserToArchive={AddUserToArchive} //Function for call api to user archive
ArchiveButtonText={ArchiveButtonText} //Archive button text
IsAllowArchive={IsAllowArchive} //Is allow to access archive
ToggleArchiveClientList={ToggleArchiveClientList} //True | False 
IsArchive={IsArchive} //True | False
toggleHideDialog={toggleHideDialog} //True | False
UseParamsData={parseInt(UseParamsData)} //id paramaters from url
IsAllowDragDrop={IsDragDrop} //Allow to user drag and drop (true|false)
HandleDragDrop={HandleDragDrop} //Function to change to change position and call api 
ChangeOrderButtonText={ChangeOrderButtonText} //Button text
IsModalOpen={IsModalOpen} //True | False
AllowModelOpen={AllowModelOpen} //True | False
/>
1.14.5

2 years ago

1.14.8

2 years ago

1.14.7

2 years ago

1.14.6

2 years ago

1.15.0

2 years ago

1.15.4

2 years ago

1.15.3

2 years ago

1.15.2

2 years ago

1.15.1

2 years ago

1.15.8

2 years ago

1.15.7

2 years ago

1.15.6

2 years ago

1.15.9

2 years ago

1.16.3

2 years ago

1.16.2

2 years ago

1.16.1

2 years ago

1.16.0

2 years ago

1.16.7

2 years ago

1.15.10

2 years ago

1.16.6

2 years ago

1.16.5

2 years ago

1.16.4

2 years ago

1.16.9

2 years ago

1.16.8

2 years ago

1.17.2

2 years ago

1.17.1

2 years ago

1.17.0

2 years ago

1.14.3

2 years ago

1.14.1

2 years ago

1.14.0

2 years ago

1.14.2

2 years ago

1.13.2

2 years ago

1.13.6

2 years ago

1.13.5

2 years ago

1.13.4

2 years ago

1.13.3

2 years ago

1.13.9

2 years ago

1.13.8

2 years ago

1.13.7

2 years ago

1.13.1

2 years ago

1.13.0

2 years ago

1.12.9

3 years ago

1.12.3

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.12.7

3 years ago

1.12.6

3 years ago

1.12.5

3 years ago

1.12.4

3 years ago

1.12.8

3 years ago

1.11.8

3 years ago

1.11.9

3 years ago

1.10.5

3 years ago

1.10.4

3 years ago

1.10.3

3 years ago

1.10.2

3 years ago

1.10.9

3 years ago

1.10.8

3 years ago

1.10.7

3 years ago

1.10.6

3 years ago

1.9.9

3 years ago

1.9.8

3 years ago

1.9.7

3 years ago

1.9.6

3 years ago

1.9.5

3 years ago

1.9.4

3 years ago

1.9.3

3 years ago

1.9.2

3 years ago

1.11.0

3 years ago

1.11.4

3 years ago

1.11.3

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.7

3 years ago

1.11.6

3 years ago

1.11.5

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.10.15

3 years ago

1.8.9

3 years ago

1.10.13

3 years ago

1.8.8

3 years ago

1.10.14

3 years ago

1.8.7

3 years ago

1.10.11

3 years ago

1.10.12

3 years ago

1.10.10

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.8.6

3 years ago

1.8.5

3 years ago

1.8.4

3 years ago

1.8.3

3 years ago

1.8.2

3 years ago

1.7.3

3 years ago

1.8.1

3 years ago

1.7.2

3 years ago

1.8.0

3 years ago

1.7.9

3 years ago

1.7.8

3 years ago

1.7.7

3 years ago

1.7.6

3 years ago

1.7.5

3 years ago

1.7.4

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.4

3 years ago

1.6.9

3 years ago

1.6.8

3 years ago

1.6.7

3 years ago

1.6.6

3 years ago

1.6.5

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.9

3 years ago

1.5.8

3 years ago

1.4.6

3 years ago

1.5.4

3 years ago

1.4.5

3 years ago

1.5.3

3 years ago

1.4.4

3 years ago

1.5.2

3 years ago

1.4.3

3 years ago

1.5.1

3 years ago

1.4.2

3 years ago

1.5.0

3 years ago

1.5.7

3 years ago

1.5.6

3 years ago

1.4.7

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago