You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // @flow
  2. export type DialogProps = {
  3. /**
  4. * Whether cancel button is disabled. Enabled by default.
  5. */
  6. cancelDisabled: boolean,
  7. /**
  8. * Optional i18n key to change the cancel button title.
  9. */
  10. cancelTitleKey: string,
  11. /**
  12. * The React {@code Component} children which represents the dialog's body.
  13. */
  14. children: React$Node,
  15. /**
  16. * Is ok button enabled/disabled. Enabled by default.
  17. */
  18. okDisabled: boolean,
  19. /**
  20. * Optional i18n key to change the ok button title.
  21. */
  22. okTitleKey: string,
  23. /**
  24. * The handler for onCancel event.
  25. */
  26. onCancel: Function,
  27. /**
  28. * The handler for the event when submitting the dialog.
  29. */
  30. onSubmit: Function,
  31. /**
  32. * Used to obtain translations in children classes.
  33. */
  34. t: Function,
  35. /**
  36. * Key to use for showing a title.
  37. */
  38. titleKey: string,
  39. /**
  40. * The string to use as a title instead of {@code titleKey}. If a truthy
  41. * value is specified, it takes precedence over {@code titleKey} i.e.
  42. * the latter is unused.
  43. */
  44. titleString: string
  45. };