React Common - Utils - ui
An object that serves as a namespace for DevExtreme UI components as well as for methods implementing UI logic in DevExtreme sites/applications.
dialog
An object that serves as a namespace for methods displaying a message in an application/site.
dxOverlay
An object that serves as a namespace for static methods that affect overlay UI components.
notify(message, type, displayTime)
Creates a toast message.
- import React from 'react';
- import notify from 'devextreme/ui/notify';
- class App extends React.Component {
- componentDidMount() {
- notify("Warning message", "warning", 500);
- }
- }
- export default App;
notify(options, type, displayTime)
Creates a toast message.
The Toast configuration.
The message's type: "info", "warning", "error" or "success".
The time interval in milliseconds for which the message is displayed.
- import React from 'react';
- import notify from 'devextreme/ui/notify';
- class App extends React.Component {
- componentDidMount() {
- notify({ message: "Error message", width: 300, shading: true }, "error", 500);
- }
- }
- export default App;
See Also
repaintFloatingActionButton()
Repaints the Floating Action Button.
Call this method to repaint the Floating Action Button after you change the globalConfig.floatingActionButtonConfig at runtime:
- import React from 'react';
- import config from 'devextreme/core/config';
- import repaintFloatingActionButton from 'devextreme/ui/speed_dial_action/repaint_floating_action_button';
- class App extends React.Component {
- changeFabConfig() {
- config({
- floatingActionButtonConfig: {
- // ...
- }
- });
- repaintFloatingActionButton();
- }
- }
- export default App;
See Also
themes
An object that serves as a namespace for the methods that work with DevExtreme CSS Themes.