0.4.0 • Published 6 months ago
proton-state v0.4.0
proton-state
examples
https://codesandbox.io/s/github/ptrushin/proton-state-examples
Try to play:
- Add filter Category - Address bar and Grid changed
- Add filter Product, it depends on Category
- Change filter on column OrderDate in Gird - Address bar and Grid changed
- Click with alt key on cell in column Quantity - all filtered by its value - Address bar and Grid changed
- Now you can copy address from address bar and open it in other tab - all filters applied
- Change column order and reload page, now aggird state store in localstorage and you can copy/paste state
install
npm install proton-state
add to AgGrid
in component ctor
this.protonState = new ProtonState(
{
history: props.history,
onChange: this.onStateChange
});
in componentDidMount and componentDidUpdate
this.protonState.updateState();
in onGridReady AgGrid event
onGridReady = params => {
this.protonState.addStateProvider(new AgGridStateProvider({api: params.api}))
...
0.4.0
6 months ago
0.2.4
2 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.1.27
3 years ago
0.1.25
3 years ago
0.1.26
3 years ago
0.1.23
3 years ago
0.1.24
3 years ago
0.1.22
3 years ago
0.1.21
3 years ago
0.1.20
3 years ago
0.1.18
3 years ago
0.1.19
3 years ago
0.1.16
4 years ago
0.1.17
4 years ago
0.1.15
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.10
4 years ago
0.1.11
4 years ago
0.1.8
4 years ago
0.1.9
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago