Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
angular-popgun
Advanced tools
[![npm][npm-badge]][npm-badge-url] [npm-badge]: https://img.shields.io/npm/v/angular-popgun.svg [npm-badge-url]: https://www.npmjs.com/package/angular-popgun
Welcome to Angular-Popgun - the AngularJS adapter for Popgun!!
Popgun is a pure Javascript popover component for high performance and feature-rich web applications!
Define a target element and set some inline attributes and initialize Popgun in the controller.
html
<!-- On hover, a text popover will appear. -->
<div popgun popgun-trigger="hover" popgun-text="Hello World"></div>
js
popgun.init($scope, $element);
If there are a lot of popgun elements, rather than define inline attributes, register groups and schemas.
html
<!-- On hover, an html element popover will appear -->
<div popgun popgun-group="sampleGroup1"></div>
<!-- On click or hover, a text popover will appear. -->
<div popgun popgun-group="sampleGroup2"></div>
<!-- On click or hover, a text popover will appear with the overriden inline attribute. -->
<div popgun
popgun-group="sampleGroup2"
popgun-text="Inline attribute override group attributes, which override schema options.">
</div>
js
// A base schema
var schema = {
hoverDelay: 200,
trigger: 'hover'
}
popgun.registerSchema('sampleSchema', schema);
// A group based on schema
var group = {
schemaId: 'sampleSchema',
options: {
html: '<div>html element</div>'
}
}
// Another group based on schema that overrides one of the schema attribute
var anotherGroup = {
schemaId: 'sampleSchema',
options: {
text: 'This is sample text.',
trigger: 'click hover'
}
}
popgun.registerGroup('sampleGroup1', group);
popgun.registerGroup('sampleGroup2', anotherGroup);
popgun.init($scope, $element);
Some Popgun attributes that you can define are:
Throughout the life cycle of the popover, Popgun will fire the following events onto the target:
Show States
Hide States
js
el.addEventListener('PopgunPreShow', function(e) {
console.log('PopgunPreShow');
}, false);
Run bin/iqb install
to install the npm and typings dependencies.
Run bin/iqb start
to run a demo application with Popgun.
FAQs
An AngularJS adapter for Popgun
We found that angular-popgun 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.