Skip to content

Instantly share code, notes, and snippets.

@dbouwman

dbouwman/layout.js

Created Feb 24, 2013
Embed
What would you like to do?
Snippet showing how the layout is created, and how we setup the regions which are nodes in the layout's template
var LayerListLayoutView = Backbone.Marionette.Layout.extend({
template: "#layer-list-template",
//define the regions using selectors for nodes
//inside the layout's template
regions: {
layerListRegion: "#layer-list",
basemapRegion: "#basemap-list"
},
events:{'click #layer-list-close':'closeView'},
closeView:function(){
Viewer.vent.trigger('View:LayerList:Hide');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.