Home Reference Source
public class | source

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:

NameTypeAttributeDescription
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(): *

Рендер

Public Methods

public render(): * source

Рендер

Return:

*