import ModalDialog from 'n2o/src/components/actions/ModalDialog/ModalDialog.jsx'ModalDialog
Extends:
react~React.Component → ModalDialog
Диалог подтверждения действие
Example:
<ModalDialog {...button.confirm}
visible={this.state.confirmVisibleId === button.id}
onConfirm={() => {
this.onClickHelper(button);
this.closeConfirm();
}}
onDeny={this.closeConfirm} />
React Props:
| Name | Type | Attribute | Description |
| closeButton | boolean | крестик скрытия в углу. | |
| size | string | размер (lg или sm) | |
| title | string | текст заголовка диалога | |
| text | string | основной текст | |
| okLabel | string | текст на кнопке подтверждения | |
| cancelLabel | string | текст на кнопке отмены | |
| visible | boolean | свойство видимости | |
| onConfirm | function | вызывается при подтверждении | |
| onDeny | function | вызывается при отмене | |
| close | function |
Method Summary
| Public Methods | ||
| public |
render(): * Рендер |
|