UNPKG

ldx-widgets

Version:

widgets

24 lines (14 loc) 746 B
module.exports = viewTriggers: 'addValidationError': 'addValidationError' 'toggleError': 'toggleError' 'clearValidationError': 'clearValidationError' 'clearAllErrors': 'clearAllErrors' 'forceShowAll': 'forceShowAll' 'resetForceShowAll': 'resetForceShowAll' addValidationError: (options) -> @dispatch 'add-error', options toggleError: (options) -> @dispatch 'toggle-error', options clearValidationError: (options) -> @dispatch 'clear-error', options clearAllErrors: (isInPopover) -> @dispatch 'clear-all', isInPopover forceShowAll: (autoHideAfter, isInPopover = no) -> @dispatch 'force-show-all', {autoHideAfter, isInPopover} resetForceShowAll: (isInPopover) -> @dispatch 'reset-force-show-all'