npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

grid-component-react-ex-swap

v1.13.4

Published

Grid component with all functionality

Downloads

2

Readme

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
/>