import './demo5.css'; import ConfigProvider from '..'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, Calendar, DatePicker, Dialog, Menu, Radio, Select, Timeline, } from '../..'; const { SubMenu, Item, Group, Divider } = Menu; const RangePicker = DatePicker.RangePicker; // Set global direction to 'rtl'. This affects the whole page // ConfigProvider.setDirection('rtl'); interface IState { dir: string; } class Demo extends React.Component<{}, IState> { constructor(props) { super(props); this.state = { dir: 'rtl', }; this.changeDir = this.changeDir.bind(this); this.showDialog = this.showDialog.bind(this); } changeDir(value) { this.setState({ dir: value, }); } showDialog() { Dialog.confirm({ title: 'Confirm', content: 'Are you sure you want to delete all alert e-mails waiting in queue?', }); } render() { return (
Change direction of components:{' '} RTL LTR