Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
App.MapSearchRoute = Ember.Route.extend({
renderTemplate: function() {
into: "sidebar",
outlet: "sidebar"
<ul class="navigation">
{{#linkTo class="accent-blue"}}
<i class="icon-search icon-white"></i>
{{#linkTo map.overlay class="accent-purple"}}
<i class="icon-th-large icon-white"></i>
{{#linkTo class="accent-green"}}
<i class="icon-envelope icon-white"></i>
{{outlet sidebar}}
App.SidebarView = Ember.View.extend({
templateName: "sidebar",
elementId: "sidebar",
classNameBindings: ["position", "isVisible"],
position: "right",
isVisible: true,
isPinned: false,
settings: null,
init: function () {
var settings = App.get("settings").map.sidebar;
this.set("position", settings.position);
this.set("isVisible", settings.visible);
this.set("isPinned", settings.pinned);
this.set("settings", settings);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment