12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- "use strict";
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Content Explorer
- *| (C) Copyright IBM Corp. 2015, 2017
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define(['q', 'bi/commons/ui/properties/BaseProperty', 'underscore'], function (Q, BaseProperty, _) {
- 'use strict'; //NOSONAR
- var Text = BaseProperty.extend({
- init: function init(options) {
- Text.inherited('init', this, arguments);
- _.extend(this, options);
- },
- render: function render() {
- var propertyRow = $('<div></div>');
- propertyRow.addClass('propertyRow');
- if (this.additionalClass) {
- propertyRow.addClass(this.additionalClass);
- }
- var property = $('<div></div>');
- property.addClass('propertyUIControl');
- if (this.text) {
- property.text(this.text);
- }
- propertyRow.append(property);
- this.$el.append(propertyRow);
- return Q(true);
- }
- });
- return Text;
- });
|