jiti-meet/react/features/base/dialog/constants.js

51 lines
1017 B
JavaScript
Raw Normal View History

2017-11-13 15:54:04 +00:00
export type DialogPropTypes = {
/**
* Whether cancel button is disabled. Enabled by default.
*/
2017-11-13 15:54:04 +00:00
cancelDisabled: boolean,
/**
* Optional i18n key to change the cancel button title.
*/
2017-11-13 15:54:04 +00:00
cancelTitleKey: String,
/**
* Is ok button enabled/disabled. Enabled by default.
*/
2017-11-13 15:54:04 +00:00
okDisabled: boolean,
/**
* Optional i18n key to change the ok button title.
*/
2017-11-13 15:54:04 +00:00
okTitleKey: String,
/**
* The handler for onCancel event.
*/
2017-11-13 15:54:04 +00:00
onCancel: Function,
/**
* The handler for the event when submitting the dialog.
*/
2017-11-13 15:54:04 +00:00
onSubmit: Function,
/**
* Used to obtain translations in children classes.
*/
2017-11-13 15:54:04 +00:00
t: Function,
/**
* Key to use for showing a title.
*/
2017-11-13 15:54:04 +00:00
titleKey: String,
/**
* The string to use as a title instead of {@code titleKey}. If a truthy
* value is specified, it takes precedence over {@code titleKey} i.e.
* the latter is unused.
*/
2017-11-13 15:54:04 +00:00
titleString: String
};