Dimensions

The Dialog enables you to specify its width and height.

To define the dimensions of the Dialog, use its width and height bindings.

import React from 'react';
import ReactDOM from 'react-dom';
import { Dialog, DialogActionsBar } from '@progress/kendo-react-dialogs';

class App extends React.Component {
    constructor(props) {
        super(props);
        this.state = {
            visible: true
        };
        this.toggleDialog = this.toggleDialog.bind(this);
    }

    toggleDialog() {
        this.setState({
            visible: !this.state.visible
        });
    }

    render() {
        return (
                <div>
                    <button className="k-button" onClick={this.toggleDialog}>Open Dialog</button>
                    {this.state.visible && <Dialog title={"Status"}onClose={this.toggleDialog} width={200} height={250}>
                        <p style={{ margin: "25px", textAlign: "center" }}>Your escape pod is now ready.</p>
                        <DialogActionsBar>
                            <button className="k-button k-primary" onClick={this.toggleDialog}>Launch</button>
                        </DialogActionsBar>
                    </Dialog>}
                </div>
        );
    }
}
ReactDOM.render(
    <App />,
    document.querySelector('my-app')
);

In this article