Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ngx-sortable-2
Advanced tools
Readme
ngx-sortable
an angular 4 and above component for sorting list supporting drag and drop sort.
npm install ngx-sortable
NgxSortableModule
into your app.module;import { NgxSortableModule } from 'ngx-sortable'
NgxSortableModule
to the imports of your NgModule:@NgModule({
imports: [
...,
NgxSortableModule
],
...
})
class YourModule { ... }
<ngx-sortable></ngx-sortable>
in your templates to add sortable list in your view <ngx-sortable [items]="items" [name]="'List'" (listSorted)="listOrderChanged($event)">
<ng-template let-item>
<div class="sortable-list-item">
{{item}}
</div>
</ng-template>
</ngx-sortable>
Where content inside
<ng-template> </ng-template>
is the template that will be used for displaying list items. Also the class can be named accordingly this is just an example. Create a class and add it to your root style.css
items: any[]
- array of list items.name: string
- List name that will be shown in the header.listStyle: any
- list styles such as height, width
.listStyle = {
width:'300px', //width of the list defaults to 300
height: '250px', //height of the list defaults to 250
}
listSorted($event): Event
- when list is sorted emits listSorted event with updated orderWhere
$event
is the sorted list
Found a bug or an issue with this? Open a new issue here on GitHub.
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.
FAQs
An angular 4 and above component for sorting list supporting drag and drop sort.
The npm package ngx-sortable-2 receives a total of 39 weekly downloads. As such, ngx-sortable-2 popularity was classified as not popular.
We found that ngx-sortable-2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.