SideNavLayoutView.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. define([ "require", "hbs!tmpl/site/SideNavLayoutView_tmpl", "utils/Utils" ], function(require, tmpl, Utils) {
  2. "use strict";
  3. var SideNavLayoutView = Marionette.LayoutView.extend({
  4. template: tmpl,
  5. regions: {
  6. RSidebarContent: "#r_SidebarContent"
  7. },
  8. ui: {},
  9. templateHelpers: function() {},
  10. events: function() {},
  11. initialize: function(options) {
  12. this.options = options;
  13. },
  14. onRender: function() {
  15. this.renderSideLayoutView();
  16. },
  17. renderSideLayoutView: function(options) {
  18. var that = this;
  19. options && (that.options = options), require([ "views/search/SearchFilterBrowseLayoutView" ], function(SearchFilterBrowseLayoutView) {
  20. that.RSidebarContent.show(new SearchFilterBrowseLayoutView(that.options));
  21. });
  22. },
  23. manualRender: function(options) {
  24. this.RSidebarContent.currentView && this.RSidebarContent.currentView.manualRender(options);
  25. }
  26. });
  27. return SideNavLayoutView;
  28. });