Skip to content

Instantly share code, notes, and snippets.

Created October 22, 2016 08:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
//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