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
//getObject returns a promise, so we use the then method to get the model | |
app.getObject( tabid, id, options ).then( function ( model ) { | |
//save the model for future use | |
tabContainer.visualizations[tabid] = model; | |
//the title will be in the model | |
tabContainer.setTitle( model, tabid ); | |
//the Validated event will be triggered when there is new data | |
//use it to update the title | |
model.Validated.bind( function () { | |
tabContainer.setTitle( this, tabid ); | |
} ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment