rg-sortable-list
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

A basic and custom sortable-list component for angular 5+ apps.

Example

 <rg-sortable-list
    [items]="itemList"
    displayExpr="name"
    icon="icon">
</rg-sortable-list>

Documentation

  • 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

How to install

Simply run the npm install script

    npm install --save rg-sortable-list

Dependencies

  • rg-utils ^0.1.1

Readme

Keywords

none

Package Sidebar

Install

npm i rg-sortable-list

Weekly Downloads

3

Version

0.0.2

License

none

Unpacked Size

248 kB

Total Files

32

Last publish

Collaborators

  • jesusvalenzuelar