123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /**
- * Licensed Materials - Property of IBM
- * IBM Business Analytics (C) Copyright IBM Corp. 2019, 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @class ToolbarDockAPI
- * @hideconstructor
- * @classdesc API class that is used to manage the Toolbar Dock.
- */
- define([], function () {
- var ToolbarDockAPI = function () {
- function ToolbarDockAPI() {
- _classCallCheck(this, ToolbarDockAPI);
- }
- /**
- * @function ToolbarDock#disableDockedODT
- * @description sets the ODT as floating, cleans its content and saves the preference
- */
- ToolbarDockAPI.prototype.disableDockedODT = function disableDockedODT() {};
- /**
- * @function ToolbarDockAPI#enableDockedODT
- * @description sets the ODT as docked, cleans its content and saves the preference
- */
- ToolbarDockAPI.prototype.enableDockedODT = function enableDockedODT() {};
- /**
- * @function ToolbarDockAPI#toggle
- * @description toggle the toolbar dock to dock/undock
- */
- ToolbarDockAPI.prototype.toggle = function toggle() {};
- /**
- * @function ToolbarDockAPI#isContentToolbarDocked
- * @description check if the content toolbar should be docked
- * @returns {Boolean} true if this the toolbar should be docked, false otherwise
- */
- ToolbarDockAPI.prototype.isContentToolbarDocked = function isContentToolbarDocked() {};
- /**
- * @function ToolbarDockAPI#updateODTState
- * @description Render a toolbar for the supplied spec in the content dock toolbar
- * @param {Object[]} actions - The toolbar spec to render
- * @param {String[]} [selectedIds] - Array of selected widget ids. Undefined is a valid value if the toolbar acts on a sub-control rather than a widget, such as the text toolbar.
- */
- ToolbarDockAPI.prototype.updateODTState = function updateODTState() /*actions, selectedIds*/{};
- /**
- * @function ToolbarDockAPI#focusODT
- * @description Focus on the ODT
- */
- ToolbarDockAPI.prototype.focusODT = function focusODT() {};
- /**
- * @function ToolbarDock#getOwnerIDs
- * @description Get the IDs of the contents that the current ODT is displayed for
- * @return {String[]} an array of IDs of contents
- */
- ToolbarDockAPI.prototype.getOwnerIDs = function getOwnerIDs() {};
- return ToolbarDockAPI;
- }();
- /* Callback IDs */
- /**
- * @public
- * @readonly
- * @description Callback id for the docked toolbar section
- * @memberof ToolbarDockAPI
- */
- ToolbarDockAPI.UPDATE_DOCKED_TOOLBAR_STATE = 'updateState_dockedToolbar';
- /**
- * @public
- * @readonly
- * @description Callback id for the canvas toolbar section
- * @memberof ToolbarDockAPI
- */
- ToolbarDockAPI.UPDATE_CANVAS_TOOLBAR_STATE = 'updateState_canvasToolbar';
- /**
- * @public
- * @readonly
- * @description Callback id for the docked toolbar section
- * @memberof ToolbarDockAPI
- */
- ToolbarDockAPI.FOCUS_DOCKED_TOOLBAR = 'focus_dockedToolbar';
- return ToolbarDockAPI;
- });
- //# sourceMappingURL=ToolbarDockAPI.js.map
|