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