12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /*
- * Licensed Materials - Property of IBM
- *
- * IBM Cognos Products: SHARE
- *
- * (C) Copyright IBM Corp. 2015
- *
- * US Government Users Restricted Rights - Use, duplication or disclosure
- * restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define([
- 'bi/commons/ui/View',
- 'bi/schedule/app/appControler',
- 'jquery',
- 'bi/sharecommon/utils/translator',
- 'q',
- 'bi/sharecommon/utils/simpledoT',
- 'bi/schedule/utils/htmlIds',
- 'underscore'
- ],
- function (View, controler, $, t, Q, dot, ids, template, _) {
- 'use strict';
- var cadencePicker = View.extend({
- everyNperiods: 1,
- /**
- * @constructor
- */
- init: function(options) {
- $.extend(this, options);
- View.inherited('init', this, [ options ]);
- },
-
- /**
- * Render is the main function of the Conten View. Content Views should implement (override) the render
- * method to populate this.el with the appropriate HTML. Render should always return this as a promise
- * to allow chaining of calls.
- * @returns (Promise)
- */
- render: function() {
- var dfd = $.Deferred();
- dfd.resolve(this);
- return dfd.promise();
- },
- /** All views should overwrite this function.
- * It takes a partially populated json schedule descriptor and adds to it
- * based on the properties of this view.
- * @param desc the partial JSON schedule descriptor
- * @returns the descriptor passed in, with added attributes.
- */
- toDescriptor: function(desc) {
- return desc;
- },
-
- /** All views should overwrite this function.
- * It takes an empty json message array and adds to it
- * based on the properties of this view.
- * @param msgs the messages
- * @returns the warning messages from the cadence view.
- */
- validate: function(msgs) {
- return msgs;
- }
- });
- return cadencePicker;
- });
|