šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

essence-dialog

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

essence-dialog

Essence Dialog - Dialog component

1.0.9
latest
Source
npm
Version published
Maintainers
3
Created
Source

Essence Dialog - Dialog component

Options:

  • visible: boolean value with true for visible and false for hidden
  • onOpen: callback function when Dialog component has visible toggled to true
  • onClose: callback function when Dialog component has visible toggled to false
  • dismissible: true or false to toggle the visible prop when clicked on the overlay

How to use

import Btn from 'essence-button';
import {Dialog, DialogHeader, DialogContent, DialogFooter} from 'essence-dialog';

showDialog() {
 this.setState({ open: true });
}

hideDialog() {
 this.setState({ open: false });
}

dialogClosed() {
 console.log('dialogClosed');
}

dialogOpened() {
 console.log('dialogOpened');
}

<Dialog visible={true} dismissible={false} onOpen={this.dialogOpened.bind(this)} onClose={this.dialogClosed.bind(this)}>
 <DialogHeader className={'e-text-right'}>
  <Btn icon={'navigation-close'} onClick={this.hideDialog.bind(this)} className={'flat e-background-white'} />
 </DialogHeader>

 <DialogContent>
  This is the Dialog content
 </DialogContent>

 <DialogFooter>
  <Btn type={'succes'} label={'OK'} className={'flat'} />
  <Btn type={'info'} label={'Cancel'} onClick={this.hideDialog.bind(this)} className={'flat'} />
 </DialogFooter>
</Dialog>

Keywords

color palette

FAQs

Package last updated on 20 Apr 2016

Did you know?

Socket

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.

Install

Related posts