Created
February 24, 2013 23:04
-
-
Save dbouwman/5026151 to your computer and use it in GitHub Desktop.
Snippet showing how the layout is created, and how we setup the regions which are nodes in the layout's template
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
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