Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@crystalui/angular-modal
Advanced tools
This module allows for show modal and dialog boxes.
http://crystalui.org/components/modal
Install the npm package.
npm i @crystalui/angular-modal
Import module:
import {ModalModule} from '@crystalui/angular-modal';
@NgModule({
imports: [ModalModule]
})
To open the window, import the Modal
service and call the load()
method. As a parameter, pass your component. It will be the contents of the window.
import {Modal} from '@crystalui/angular-modal';
import {MyComponent} from './my.component';
public constructor(private modal: Modal) {};
showModal() {
this.modal.load({
id: 'my-modal',
component: MyComponent
});
}
id: string = undefined
// The identifier of the window. It will distinguish one window from another.
mode: "desktop" | "mobile" | "dialog" = "desktop"
// The type of the window template.
data: any
// Any data that needs to be pass to the window. In the window component, you can get them using `@Input() modalData: any`.
width: string = "800px"
// Width of the window.
height: string = "auto"
// Height of the window. By default, the height of the window is determined by the height of its content.
maxWidth: string = "calc(100% - 32px)"
// Maximum width of the window.
maxHeight: string = "calc(100% - 32px)"
// Maximum height of the window.
overlayBackdrop: boolean = true
// Whether the window has a backdrop.
backdropClass: string | { [key: string]: any; }
// Custom classes for the backdrop. Supports the same syntax as ngClass.
modalClass: string | { [key: string]: any; }
// Custom classes for the modal window. Supports the same syntax as ngClass.
name | description |
---|---|
load({ id: "my-modal", component: MyComponent }) | Shows the modal. |
close({ id: "my-modal" }) | Hides the modal. |
Window state changes are available by subscription stateEvents.subscribe()
.
name | description |
---|---|
show | The event is called before the modal appears. |
shown | The event is called after the animation of the appearance of the modal. |
hide | The event is called before the modal is hidden. |
hidden | The event is called after the animation of the modal is hidden. |
FAQs
This module allows for show modal and dialog boxes.
We found that @crystalui/angular-modal 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.