Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
ember-overlays
Advanced tools
This addon provides three components that work together to provide positioned overlays on top of your existing content.
ember install ember-overlays
We provide three components:
First, you mark up a location that you may want to overlay:
I can {{#mark-overlay id="example"}}mark up{{/mark-overlay}} anything, even plain text nodes.
You must provide an id
so that you can refer to this mark in order to actually draw an overlay over it.
You may also optionally provide a group
, which is an arbitrary string that can also be used filter which marks you will show. Addon authors are encouraged to use group
so they don't collide with others.
You may also optionally set a model
on the mark, which will be available when you're showing an overlay over it (see below).
The overlay-marks
component provides access to the all the marks that are currently rendered. It yields them to you, and then you decide how and if to show them. You can optionally filter by group
and/or id
.
{{#overlay-marks group="my-fancy-marks" as |mark|}}
{{#create-overlay at=mark label=mark.model.name highlighted=showOverlay}}
Overlay content
{{/create-overlay}}
{{/overlay-marks}}
The values you are given here have the id
, group
, and model
you provided via mark-overlay
.
To actually render an overlay, you pass one of the marks to create-overlay
. It takes the following options:
label
property.This repo's dummy app has a working demo page.
See the Contributing guide for details.
FAQs
Flexible overlays that track your content.
The npm package ember-overlays receives a total of 18 weekly downloads. As such, ember-overlays popularity was classified as not popular.
We found that ember-overlays demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.