0.4.0 • Published 2 years ago

proton-state v0.4.0

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

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

2 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.27

5 years ago

0.1.25

5 years ago

0.1.26

5 years ago

0.1.23

5 years ago

0.1.24

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.18

5 years ago

0.1.19

5 years ago

0.1.16

5 years ago

0.1.17

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.10

5 years ago

0.1.11

5 years ago

0.1.8

5 years ago

0.1.9

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago