Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

actions.native.ts 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { CUSTOM_OVERFLOW_MENU_BUTTON_PRESSED } from './actionTypes';
  2. export * from './actions.any';
  3. /**
  4. * Shows the toolbox for specified timeout.
  5. *
  6. * @param {number} _timeout - Timeout for showing the toolbox.
  7. * @returns {Function}
  8. */
  9. export function showToolbox(_timeout?: number): any {
  10. return {};
  11. }
  12. /**
  13. * Shows/hides the overflow menu.
  14. *
  15. * @param {boolean} _visible - True to show it or false to hide it.
  16. * @returns {{
  17. * type: SET_OVERFLOW_MENU_VISIBLE,
  18. * visible: boolean
  19. * }}
  20. */
  21. export function setOverflowMenuVisible(_visible: boolean): any {
  22. return {};
  23. }
  24. /**
  25. * Creates a (redux) action which that a custom overflow menu button was pressed.
  26. *
  27. * @param {string} id - The id for the custom button.
  28. * @param {string} text - The label for the custom button.
  29. * @returns {{
  30. * type: CUSTOM_OVERFLOW_MENU_BUTTON_PRESSED,
  31. * id: string,
  32. * text: string
  33. * }}
  34. */
  35. export function customOverflowMenuButtonPressed(id: string, text: string) {
  36. return {
  37. type: CUSTOM_OVERFLOW_MENU_BUTTON_PRESSED,
  38. id,
  39. text
  40. };
  41. }