ldx-widgets
Version:
widgets
40 lines (38 loc) • 1.2 kB
JavaScript
(function() {
module.exports = {
viewTriggers: {
'addValidationError': 'addValidationError',
'toggleError': 'toggleError',
'showAllErrors': 'showAllErrors',
'forceShowAll': 'forceShowAll',
'clearAllErrors': 'clearAllErrors',
'clearValidationError': 'clearValidationError',
'raiseValidation': 'raiseValidation',
'lowerValidation': 'lowerValidation'
},
addValidationError: function(options) {
return this.dispatch('add-error', options);
},
toggleError: function(options) {
return this.dispatch('toggle-error', options);
},
showAllErrors: function(autoHideAfter) {
return this.dispatch('show-all', autoHideAfter);
},
forceShowAll: function(autoHideAfter) {
return this.dispatch('froce-show-all', autoHideAfter);
},
clearValidationError: function(id) {
return this.dispatch('clear-error', id);
},
clearAllErrors: function() {
return this.dispatch('clear-all');
},
raiseValidation: function() {
return this.dispatch('raise-validation');
},
lowerValidation: function() {
return this.dispatch('lower-validation');
}
};
}).call(this);