Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
svelte-dragdroplist
Advanced tools
Sortable lists with Svelte. Try the REPL!
Basic REPL
REPL with data binding, multiple datasets, IDs, and HTML items.
The simplest way to use the component is to pass it an array of unique strings. If you bind:data
, the source array will be updated as the user rearranges its items.
<script>
import DragDropList from "svelte-dragdroplist";
let data = ["Adams", "Boston", "Chicago", "Denver"];
</script>
<DragDropList bind:data={data}/>
If you aren't sure that your strings will be unique, you should instead pass an array of objects, each with a unique ID:
let data = [{"id": 0, "text": "Boston"},
{"id": 1, "text": "Boston"},
{"id": 2, "text": "Chicago"},
{"id": 3, "text": "Denver"}];
You can also include an "html" attribute instead of "text". It's up to you to make sure the html is clean.
If you want, you can even use both in one list.
let data = [{"id": 0, "text": "Adams"},
{"id": 1, "text": "Boston"},
{"id": 2, "html": "<p style='color: blue;'>Chicago</p>"},
{"id": 3, "html": "<p style='color: red;'>Denver</p>"}];
FAQs
Sortable lists with Svelte 3. Animated, touch-friendly, and accessible.
The npm package svelte-dragdroplist receives a total of 58 weekly downloads. As such, svelte-dragdroplist popularity was classified as not popular.
We found that svelte-dragdroplist 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.