SearchDetailLayoutView.js 1.2 KB

1234567891011121314151617181920212223242526
  1. define([ "require", "backbone", "hbs!tmpl/search/SearchDetailLayoutView_tmpl" ], function(require, Backbone, SearchDetailLayoutViewTmpl) {
  2. "use strict";
  3. var SearchDetailLayoutView = Backbone.Marionette.LayoutView.extend({
  4. _viewName: "SearchDetailLayoutView",
  5. template: SearchDetailLayoutViewTmpl,
  6. regions: {
  7. RSearchResultLayoutView: "#r_searchResultLayoutView"
  8. },
  9. ui: {},
  10. events: function() {},
  11. initialize: function(options) {
  12. _.extend(this, _.pick(options, "value", "initialView", "classificationDefCollection", "entityDefCollection", "typeHeaders", "searchVent", "enumDefCollection", "searchTableColumns"));
  13. },
  14. bindEvents: function() {},
  15. onRender: function() {
  16. this.renderSearchResultLayoutView();
  17. },
  18. renderSearchResultLayoutView: function() {
  19. var that = this;
  20. require([ "views/search/SearchResultLayoutView" ], function(SearchResultLayoutView) {
  21. that.RSearchResultLayoutView && that.RSearchResultLayoutView.show(new SearchResultLayoutView(that.options));
  22. });
  23. }
  24. });
  25. return SearchDetailLayoutView;
  26. });