123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: Content Explorer
- *| (C) Copyright IBM Corp. 2015, 2018
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define([
- 'bacontentnav/lib/@waca/core-client/js/core-client/ui/properties/BaseProperty',
- 'underscore'
- ], function(BaseProperty, _) {
- 'use strict';
- /**
- For custom UI in the middle of a propertyUIControl you can use this class. It'll call your renderCallback function
- at the appropriate time with the container node so you can render your own UI
- **/
- /**
- This is a TEMP class until we can refactor the member picker and permissions tab so that the list control can be broken out into a seperate view
- **/
- var RenderCallback = BaseProperty.extend({
- ellipses: true,
- handleReturnKey: true,
- /**
- @param options.el {node} - container DOM node
- @param options.renderCallback {function} - function to render custom UI. Should return a Q promise
- **/
- init: function(options) {
- RenderCallback.inherited('init', this, arguments);
- _.extend(this, options);
- },
- doRender: function() {
- return this.renderCallback(this.el);
- }
- });
- return RenderCallback;
- });
|