GDB Multiple Instances Example

Edit the text above!

Model Data Structure

(Note: Because model updates are in realtime and the syntax highlighter is processor intensive, rapid input may slow this example. This behavior is not present in the production use of the plugin)

GDB1 Model

GDB2 Model

HTML

JavaScript

var model = { name: 'Neville' };
var page_model = { title: '' };
var gdb1=new GDB({login: model},{rootElementSelectorString: '#widget1'});
var gdb2=new GDB({page: page_model},{rootElementSelectorString: '#widget2'});