Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
simple-callout
Advanced tools
A simple, style-agnostic callout box that can be shown and hidden from any position.
Install simple-callout with Bower
$ bower install simple-callout --save
Import it into the <head>
of your page
<link rel="import" href="/bower_components/simple-callout/simple-callout.html">
Then use simple-callout in your project
<simple-callout arrow="top left">
<span>My callout contents</span>
</simple-callout>
To ensure that the content inside the callout is layered on top of the callout's arrow, always use elements rather than just text nodes (eg: <span>text</span>
instead of text
);
Simple callout relies on emerging standards, and you will need to include polyfills for cross-browser support:
<script src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
--
Property | Type | Default | Description |
---|---|---|---|
active | Boolean | false | Controls whether the callout is visible or not |
origin | String | undefined | The origin position that the callout expands from. Can be any combination of top/bottom/left/right/center |
arrow | Boolean | false | Whether the callout has a little arrow at its origin |
noOutsideClick | Boolean | false | Disable closing the callout on outside clicks |
noEscape | Boolean | false | Disable closing the callout on escape key presses |
<simple-callout origin="bottom center" arrow no-escape></simple-callout>
Method | Arguments | Description |
---|---|---|
open() | none | Utility method to open the callout |
close() | none | Utility method to close the callout |
toggle() | none | Utility method to toggle the callout |
In addition to styling the callout directly, you can also set these CSS properties
Property | Default | Description |
---|---|---|
--simple-callout-arrow-size | 8px | Size of the callout's arrow |
Apply properties on simple-callout
simple-callout {
--simple-callout-arrow-size: 12px;
}
--
MIT © Simpla
FAQs
A simple callout box/tooltip
The npm package simple-callout receives a total of 0 weekly downloads. As such, simple-callout popularity was classified as not popular.
We found that simple-callout 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.