|
1 | | -<ngsg-demo-nav></ngsg-demo-nav> |
2 | | -<ngsg-demo-header></ngsg-demo-header> |
3 | | - |
4 | | -<div class="container"> |
5 | | - <h1>1. Getting started</h1> |
6 | | - <ngsg-demo-step title="Loop over your elements with *ngFor. 🛎️ the items needs to be an array. Alternate you can also use the async pipe - see below" image="gs1.png"></ngsg-demo-step> |
7 | | - <ngsg-demo-step title="Apply the ngSortgridItem directive" image="gs2.png"></ngsg-demo-step> |
8 | | - <ngsg-demo-memory></ngsg-demo-memory> |
9 | | - |
10 | | - <hr class="chaptor-separator"/> |
11 | | - |
12 | | - <h1>2. React on changes</h1> |
13 | | - <p>In most cases you are interested in the new sort order. Often you want to store them in local storage or even send them |
14 | | - to the backend. To do so the following two steps are needed in addition to the "Getting started" step.</p> |
15 | | - <ngsg-demo-step title="Pass your items to the directive via the ngSortGridItems input." image="gs3.png"></ngsg-demo-step> |
16 | | - <ngsg-demo-step title="React on the 'sorted' output events" image="gs4.png"></ngsg-demo-step> |
17 | | - <ngsg-demo-react-on-changes-memory></ngsg-demo-react-on-changes-memory> |
18 | | - |
19 | | - <hr class="chaptor-separator"/> |
20 | | - <h1>3. Group sortgrids</h1> |
21 | | - <p>In case you have more than one sortgriditem on the page you need to group the sortgriditems to avoid dropping drags from |
22 | | - one group in another group.</p> |
23 | | - <ngsg-demo-step title="Pass in a unique name to the ngSortGridGroup input" image="gs5.png"></ngsg-demo-step> |
24 | | - <ngsg-demo-groups-memory></ngsg-demo-groups-memory> |
25 | | - |
26 | | - <hr class="chaptor-separator"/> |
27 | | - <h1>4. Use the async pipe</h1> |
28 | | - <ngsg-demo-step title="Use the async pipe to loop over the items and to pass in the ngSortGridItems" image="gs6.png"></ngsg-demo-step> |
29 | | - <ngsg-demo-async></ngsg-demo-async> |
30 | | -</div> |
31 | | - |
| 1 | +<router-outlet></router-outlet> |
32 | 2 | <footer class="py-5 bg-dark"> |
33 | 3 | <div class="container"> |
34 | 4 | <p class="m-0 text-center text-white">Made with ♥️ by <a href="https://twitter.com/KevinKreuzer90" target="_blank">Kevin Kreuzer</a></p> |
|
0 commit comments