'use strict'; /** * Licensed Materials - Property of IBM * IBM Watson Analytics (C) Copyright IBM Corp. 2018 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. * */ define(['../../../lib/@waca/core-client/js/core-client/ui/dialogs/GenericViewDialog', '../views/DrillThroughManageView', '../../../widgets/livewidget/nls/StringResources'], function (GenericViewDialog, DrillThroughManageView, StringResources) { /** * Creates a drill through manage dialog. * @param - options */ var DrillThroughManageDialog = GenericViewDialog.extend({ init: function init(options) { options = options || {}; if (!options.handlers) { throw new Error('Handlers must be provided to manage drill through definitions'); } var dialogOptions = { buttons: [{ text: StringResources.get('dlg_apply'), handler: this.ok.bind(this), type: 'primary', defaultId: 'open_button' }, { handler: this.cancel.bind(this), defaultId: 'cancel' }], viewClass: DrillThroughManageView, id: 'manageJumpPathsDialogTitle', title: StringResources.get('drillthrough_manageJumpPaths'), okCallback: options.handlers.okCallback, cancelCallback: options.handlers.cancelCallback, viewOptions: { content: options.content, dashboard: options.dashboard, drillThroughModelApi: options.drillThroughModelApi, handlers: { onEdit: options.handlers.onEdit, onCreate: options.handlers.onCreate, onDelete: options.handlers.onDelete, enableOk: this.enableOk.bind(this) } } }; DrillThroughManageDialog.inherited('init', this, [dialogOptions]); } }); return DrillThroughManageDialog; }); //# sourceMappingURL=DrillThroughManageDialog.js.map