
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
angular-stackables
Advanced tools
AngularJS stackable widgets (modals, popovers, menus) that use HTML5 dialog
<div ng-controller="TestController as test">
<stackable-modal stackable="test.isOpen"
stackable-disable-escape="false"
stackable-closing="test.modalClosing(err, result)"
stackable-closed="test.modalClosed(err, result)">
<div class="stackable-dialog">
<div inner-directive>
<p>Test Dialog</p>
</div>
</div>
</stackable-modal>
</div>
function TestController() {
this.isOpen = false;
this.modalClosing = function(err, result) {
/* return false or a Promise that resolves to false to prevent close */
return true;
};
this.modalClosed = function(err, result) {
console.log('modal closed', err, result);
};
}
module.directive({
innerDirective: function() {
return {
restrict: 'A',
require: '^stackable',
replace: true,
transclude: true,
template: '<div ng-transclude></div>',
link: function(scope, element, attrs, ctrl) {
// use stackable controller API to close stackable programmatically
ctrl.close(null, 'closed from inner directive');
}
};
}
});
<div ng-controller="TestController as test">
<button
stackable-trigger="test.popoverState"
stackable-toggle="'active'">
<i class="caret"></i>
</button>
<stackable-popover stackable="test.popoverState"
stackable-placement="bottom"
stackable-alignment="center"
stackable-enable-escape="true">
<h3 class="stackable-popover-title">Title</h3>
<div class="stackable-popover-body">
<p>Hello World</p>
</div>
</stackable-popover>
</div>
<div ng-controller="TestController as test">
<button stackable-trigger="test.menuState">
<i class="caret"></i>
</button>
<stackable-popover stackable="test.menuState"
stackable-hide-arrow="true"
stackable-placement="bottom"
stackable-alignment="right"
stackable-enable-escape="true">
<ul class="stackable-menu">
<li>
<a href="#">Menu Item</a>
</li>
</ul>
</stackable-popover>
</div>
1.2.4 - 2017-06-20
FAQs
angular-stackables
The npm package angular-stackables receives a total of 4 weekly downloads. As such, angular-stackables popularity was classified as not popular.
We found that angular-stackables demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.