Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var myCustomFieldController = Marionette.Object.extend( {
initialize: function() {
// ....
},
validate: function( model ) {
// Check the field type.
if( 'custom' != model.get( 'type' ) ) return;
// Get the field value.
var fieldValue = model.get( 'value' );
// Do Validation Here...
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment