![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
coffeekraken-s-dialog-component
Advanced tools
Readme
Powerful, fully featured and easy to use dialog component
npm install coffeekraken-s-dialog-component --save
First, import the component into your javascript file like so:
import SDialogComponent from 'coffeekraken-s-dialog-component'
Then simply use it inside your html like so:
<!-- inline content -->
<s-dialog id="my-cool-dialog">
<template><!-- optional template tag -->
<h1>Hello World</h1>
<p>Phasellus nec dictum arcu, finibus semper tellus. Aliquam mattis dictum.</p>
</template>
</s-dialog>
<a href="#my-cool-dialog">Click to open the dialog</a>
<!-- automatically opened dialog -->
<s-dialog opened content="data/my-cool-dialog.html"></s-dialog>
This webcomponent offers you multiple way to instanciate a dialog. Here's the list:
Open a dialog using a dom component present in the page.
This dom element can be a template
tag too.
Open a content inside an iframe. Usefull to load for example youtube/vimeo/etc... content
Open a dialog in modal mode. This mean that the user cannot close the dialog by clicking outside or by the escape key and your in full control of it's state
Open a dialog and load his content through an ajax request
Open a dialog fully programatically
![]() IE / Edge | ![]() Firefox | ![]() Chrome | ![]() Safari |
---|---|---|---|
IE11+ | last 2 versions | last 2 versions | last 2 versions |
As browsers are automatically updated, we will keep as reference the last two versions of each but this component can work on older ones as well.
The webcomponent API (custom elements, shadowDOM, etc...) is not supported in some older browsers like IE10, etc... In order to make them work, you will need to integrate the corresponding polyfill.
This is an open source project and will ever be! You are more that welcomed to contribute to his development and make it more awesome every day. To do so, you have several possibilities:
We try to be some cool guys that build some cool tools to make our (and yours hopefully) every day life better.
The code is available under the MIT license. This mean that you can use, modify, or do whatever you want with it. This mean also that it is shipped to you for free, so don't be a hater and if you find some issues, etc... feel free to contribute instead of sharing your frustrations on social networks like an asshole...
FAQs
Powerful, fully featured and easy to use dialog component
The npm package coffeekraken-s-dialog-component receives a total of 1 weekly downloads. As such, coffeekraken-s-dialog-component popularity was classified as not popular.
We found that coffeekraken-s-dialog-component 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.