/** * Validates that the value does not exist in a {@link #list} of values. */Ext.define('Ext.data.validator.Exclusion', { extend: 'Ext.data.validator.List', alias: 'data.validator.exclusion', type: 'exclusion', config: { /** * @cfg {String} message * The error message to return when the passed value exists in the * specified {@link #list}. */ message: 'Is a value that has been excluded' }, //<debug> constructor: function() { this.callParent(arguments); if (!this.getList()) { Ext.Error.raise('validator.Exclusion requires a list'); } }, //</debug> inclusion: false});