react-toolbox/components/dialog
Javi Velasco 77ff2ac643 New layout and organization. 🙉 2015-10-30 20:30:56 +01:00
..
_config.scss More refactoring for sass variables 2015-10-21 01:06:04 +02:00
index.jsx Babel to stage 2 and remove decorators 2015-10-22 01:31:17 +02:00
readme.md Rename component doc to readme.md 2015-10-28 22:09:09 +07:00
style.scss New layout and organization. 🙉 2015-10-30 20:30:56 +01:00

readme.md

Dialog

var Dialog  = require('react-toolbox/components/dialog');
var actions = [
  { caption: "Cancel", style: "transparent", onClick: this.onClose }
,
  { caption: "Save", style: "transparent", onClick: this.onSave }
]

<Dialog title='Hello World' actions={actions}>
  /* -- more content -- */
</Dialog>

Properties

Name Type Default Description
actions Array A array of actions callbacks for the component.
active Boolean If true, component will be shows.
className String "normal" Set the class-styles of the Component.
title String The text string to use for the title of the component.
type String Type of the component, overwrite this property if you need set a different stylesheet.

Methods

show

Shows the dialog.

dialog_instance.show();

hide

Hides the dialog.

dialog_instance.hide();