nxt-sortablejs
TypeScript icon, indicating that this package has built-in type declarations

18.0.0 • Public • Published

Angular Sortablejs directive

GitHub license npm scope

This package provides Angular binding for Storablejs which works with standard arrays as well as Angular FormArray objects.

Quick links

Installing

npm install --save nxt-sortablejs sortablejs

Import Sortablejs module

import { SortablejsModule } from 'nxt-sortablejs'

@NgModule({
    ...
    imports: [
        ...
        SortablejsModule
    ]
})

If you want to cofigure global Sortablejs options, include SortablejsModule.forRoot in your application.

import { SortablejsModule } from 'nxt-sortablejs'

@NgModule({
    ...
    imports: [
        ...
        SortablejsModule.forRoot({
            animation: 150
        })
    ]
})

Use it in a template

<ul [nxtSortablejs]="items">
    <li *ngFor="let item of items">{{ item }}</li>
</ul>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 18.0.0
    2,670
    • latest

Version History

Package Sidebar

Install

npm i nxt-sortablejs

Weekly Downloads

7,001

Version

18.0.0

License

MIT

Unpacked Size

79.7 kB

Total Files

20

Last publish

Collaborators

  • hitko