您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

actions.ts 702B

123456789101112131415161718192021
  1. import { openDialog } from '../base/dialog/actions';
  2. import { DisplayNamePrompt } from './components';
  3. /**
  4. * Signals to open a dialog with the {@code DisplayNamePrompt} component.
  5. *
  6. * @param {Object} params - Map containing the callbacks to be executed in the prompt:
  7. * - onPostSubmit - The function to invoke after a successful submit of the dialog.
  8. * - validateInput - The function to invoke after a change in the display name value.
  9. * @returns {Object}
  10. */
  11. export function openDisplayNamePrompt({ onPostSubmit, validateInput }: {
  12. onPostSubmit?: Function;
  13. validateInput?: Function;
  14. }) {
  15. return openDialog(DisplayNamePrompt, {
  16. onPostSubmit,
  17. validateInput
  18. });
  19. }