
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
ceri-dropdown
Advanced tools
a advanced dropdown/up/left/right menu.
Features:
npm install --save-dev ceri-dropdown
window.customElements.define("ceri-dropdown", require("ceri-dropdown"))
<!-- as sibling (preferred) -->
<button>Click to open dropdown</button>
<ceri-dropdown>
<li><span>Line 1</span></li>
</ceri-dropdown>
<!-- as child -->
<button>Click to open dropdown
<ceri-dropdown>
<li><span>Line 1</span></li>
</ceri-dropdown>
</button>
For examples see dev/.
| Name | type | default | description |
|---|---|---|---|
| gutter | Number | 0 | horizontal offset |
| anchor | String | overlay ? "nw" : "sw" | point of the parent where it will be attached |
| keep-open | Boolean | false | will be not close on click outside of dropdown |
| constrain-width | Boolean | false | fix width to parent width |
| overlay | Boolean | false | will overlay parent |
| hover | Boolean | false | open on hover instead click |
| open | Boolean | false | set to open / close |
| on-body | Boolean | false | will be positioned on body instead of sibling/parent element. Detailed description |
| Name | description |
|---|---|
| toggled(open:Boolean) | emitted before open and after close |
There are two ways of positioning. The default is in-place, the other possibility is on body.
overflow:hidden combined with a position:absolute|relative|fixed element in the parent chain and the dropdown is overflowing.body positioning can be problematic when the parent is moving relative to body or when you depend on inheritance of styles.<button class=btn>Click me!</button>
<ceri-dropdown class=materialize constrain-width overlay>
<li><span>Content</span></li>
<li><span>Content2</span></li>
</ceri-dropdown>
# application wide
CEDD = require("ceri-dropdown")
CEDD.prototype.enter = (o) -> # your new enter animation
CEDD.prototype.leave = (o) -> # your new leave animation
window.customElements.define("ceri-dropdown", CEDD)
# single instance
# get a ref to your instance of ceri-dropdown somehow
# then overwrite the animations directly
ceDD.enter = (o) -> # your new enter animation
ceDD.leave = (o) -> # your new leave animation
Clone repository.
npm install
npm run dev
Browse to http://localhost:8080/.
Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.
FAQs
a advanced dropdown menu
We found that ceri-dropdown 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.