UNPKG

doj-react-adminlte

Version:

Simple and easy-to-use AdminLTE components for React

57 lines (51 loc) 1.67 kB
import * as React from 'react'; export type ModalSize = "default" | "large" | "small"; export interface ModalProps { /** * className gets and sets the value of the class attribute of the specified element. You can also add a CSS class in this prop to style a particular element. */ className?: string; /** * Set to true to close the modal by just pressing the backdrop. */ closeOnBackdropClick?: boolean; /** * Set to true to close the modal by pressing Escape key. */ closeOnEscapeKey?: boolean; /** * dialogClassName is a css class to apply to the Modal Dialog. */ dialogClassName?: string; /** * Set to true to show a scrollbar. */ fixedScroll?: boolean; /** * Returns a boolean value for a postback or loading a content. */ isLoading?: boolean; /** * The onCloseClick prop allows passing a function that will be invoked when the close button is clicked. */ onCloseClick?: (...args: any[])=>any; /** * The onEnter prop allows binding a function that will be invoked when the Enter button is clicked. */ onEnter?: (...args: any[])=>any; /** * The function that is binded in this event will be invoked when the user exits the Modal. */ onExit?: (...args: any[])=>any; /** * Set to true to automatically show the modal. */ show?: boolean; /** * You can set the size of the Modal in this prop. */ size?: ModalSize; } export default class Modal extends React.Component<ModalProps, any> { render(): JSX.Element; }