A basic and custom sortable-list component for angular 5+ apps.
<rg-sortable-list
[items]="itemList"
displayExpr="name"
icon="icon">
</rg-sortable-list>
-
items
- object[]
- example:
[ { id: 1, name: 'Home', icon: 'fa fa-home' }, { id: 2, name: 'Process', icon: 'fa fa-pencil' }, { id: 3, name: 'Users', icon: 'icon-users' }, { id: 4, name: 'Logout', icon: 'fa fa-logout' } ]
- This is mandatory
-
displayExpr: specify the property name to display in each item as label
- string
- This is mandatory
-
icon: string that means a css icon
- string
Simply run the npm install script
npm install --save rg-sortable-list
- rg-utils ^0.1.1