-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog default prop values #638
Comments
This has been marked as completed but it looks like it has been reverted in the meantime. The defaults for |
I know this ticket is 4 years old but things have clearly changed over the years and it does look like the defaults have changed... Dialog.defaultProps = {
__TYPE: 'Dialog',
appendTo: null,
ariaCloseIconLabel: null,
baseZIndex: 0,
blockScroll: false,
breakpoints: null,
className: null,
closable: true,
closeOnEscape: true,
contentClassName: null,
contentStyle: null,
dismissableMask: false,
draggable: true,
focusOnShow: true,
footer: null,
header: null,
headerClassName: null,
headerStyle: null,
icons: null,
id: null,
keepInViewport: true,
maskClassName: null,
maskStyle: null,
maximizable: false,
maximized: false,
minX: 0,
minY: 0,
modal: true,
onClick: null,
onDrag: null,
onDragEnd: null,
onDragStart: null,
onHide: null,
onMaskClick: null,
onMaximize: null,
onResize: null,
onResizeEnd: null,
onResizeStart: null,
onShow: null,
position: 'center',
resizable: true,
rtl: false,
showHeader: true,
style: null,
transitionOptions: null,
visible: false
}; |
Also @DanBoSlice you can easily configure the Dialog by creating a simple wrapper component like DanBoSliceDialog that sets these by default right? |
Change the default of following props;
modal to true
draggable to false
resizable to false
blockScroll to true
As these are the most common use cases.
The text was updated successfully, but these errors were encountered: