12345678910111213141516171819202122232425262728293031323334 |
- 'use strict';
- /**
- * Licensed Materials - Property of IBM
- * IBM Watson Analytics (C) Copyright IBM Corp. 2016, 2017
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['./LayoutBaseView'], function (BaseLayout) {
- var SinglePage = null;
- SinglePage = BaseLayout.extend({
- init: function init() {
- SinglePage.inherited('init', this, arguments);
- this.layoutController.layoutReady(this.model.id).done(function () {
- var layoutView = this.layoutController.getLayoutView(this.model.id);
- layoutView.onShow();
- }.bind(this));
- },
- /**
- * Get selected layout model
- *
- * @return {Model} - selected layout model
- */
- getSelectedLayout: function getSelectedLayout() {
- return this.model.items[0];
- }
- });
- return SinglePage;
- });
- //# sourceMappingURL=SinglePage.js.map
|