Created
April 12, 2017 16:51
-
-
Save elchele/3f454b3e90dd9a9956f944d3cbc8f088 to your computer and use it in GitHub Desktop.
Example demonstrating changes to createview fields upon relate field changing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
/* File: ./custom/modules/Contacts/clients/base/views/create/create.js */ | |
extendsFrom:'CreateView', | |
initialize: function(options){ | |
this._super('initialize', [options]); | |
this.model.on('change:account_id', this.test, this); | |
}, | |
test: function(){ | |
this.model.set('description', 'This is my custom value'); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment