@amxchange/grid-view-web-client
Version:
amxchange grid view framework web client in react ( a module extracted from existing jax )
42 lines (35 loc) • 1.18 kB
Markdown
## Local Installation
- Entities involved
1. Host app ( HA )
2. Package app ( PA )
## install PA as a local package in HA
- cd to HA
- npm install /path-to-PA or "@amxchange/grid-view-web-client": "file:../github-amxchange/grid-view-web-client"
## link react & react-dom of HA to PA
- cd HA/node_modules/react
- yarn link
- cd PA
- yarn link react
- repeat same steps for react-dom or any other such library in future.
## build command
- npm run build
## TODO
1. add watcher to file changes and rebuild the project ( local )
2. automate local installation - scripts/dev.linking-with-ha.sh
3. create non bundled version of dist if local for debugging purpose
## References
- npm ls --link --global
- https://github.com/microsoft/fluentui/wiki/Using-local-(unpublished)-version-of-the-lib-with-a-local-React-app
## Clarifications
- filterConfig={{
[dbColumnName]: {
sx: {},
optionGenerator: (el) => {
return {
label: el.name,
value: el.value
}
}
}
}}
- populate filterCondition ( is the key that will go as filter key in the data request )