![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@opengovsg/angular-legacy-sortablejs-maintained
Advanced tools
Fork of Angular (legacy) directive for SortableJS.
Angular 1 module that integrates with Sortable.js
npm install angular-legacy-sortablejs-maintained
yarn add angular-legacy-sortablejs-maintained
Don't install the old angular-legacy-sortablejs package as thats not maintained
angular.module('exampleApp', ['ng-sortable'])
.component('dragAndDropExample', {
template: `<ul ng-sortable>
<li ng-repeat="item in ['burgers', 'chips', 'hotdog']">
{$ item $}
</li>
</ul>`,
})
You can pass a Config obj to ng-sortable
and it will pass this onto the created sortable object. The available options can be found here
angular.module('exampleApp', ['ng-sortable'])
.component('dragAndDropExample', {
template: `
<ul ng-sortable=$ctrl.sortableConf>
<li ng-repeat="item in ['burgers', 'chips', 'hotdog']">
{$ item $}
</li>
</ul>`,
controller: class ExampleController {
constructor() {
this.sortableConf = {
animation: 350,
chosenClass: 'sortable-chosen',
handle: '.grab-handle',
forceFallback: true,
};
}
},
});
Example showing how use the handle option
angular.module('exampleApp', ['ng-sortable'])
.component('dragAndDropExample', {
template: `
<ul ng-sortable=$ctrl.sortableConf>
<li ng-repeat="item in ['burgers', 'chips', 'hotdog']" draggable="false">
<span class="grab-handle">Drag Header</span>
<div>{$ item $}</div>
</li>
</ul>`,
controller: class ExampleController {
constructor() {
this.sortableConf = {
animation: 350,
chosenClass: 'sortable-chosen',
handle: '.grab-handle',
forceFallback: true,
};
}
},
});
There are selenium based tests that can be used to check for regressions
Navigate to the repo directory in a terminal and run
yarn
To run the e2e tests run each of these commands in a separate terminal window
npm run serve:example
npm run webdriver
npm run test:e2e
FAQs
Fork of Angular (legacy) directive for SortableJS.
The npm package @opengovsg/angular-legacy-sortablejs-maintained receives a total of 0 weekly downloads. As such, @opengovsg/angular-legacy-sortablejs-maintained popularity was classified as not popular.
We found that @opengovsg/angular-legacy-sortablejs-maintained demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.