123456789101112131415161718192021222324252627282930313233 |
- 'use strict';
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2016, 2019
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['../../lib/@waca/dashboard-common/dist/core/Collection', './ConditionalStyle'], function (Collection, ConditionalStyle) {
- /**
- * Collection which holds onto Dataset models
- */
- var ConditionalStyleCollection = Collection.extend({
- // The class of objects that this collection manages
- modelClass: ConditionalStyle,
- init: function init(models, options) {
- ConditionalStyleCollection.inherited('init', this, [models, options]);
- },
- getColor: function getColor(index) {
- return index < this.size() ? this.getModels()[index] : null;
- },
- getColors: function getColors() {
- return this.getModels();
- }
- });
- return ConditionalStyleCollection;
- });
- //# sourceMappingURL=ConditionalStyleCollection.js.map
|