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 1017B

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