UNPKG

549 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var ButtonGroup_1 = require("../actions/ButtonGroup");
4function getGroupedButton(action, button, subgroups, updateCb) {
5 action.addChild(button, action.group, subgroups);
6 var id = button.id, label = button.label, disabled = button.disabled, buttons = button.buttons;
7 action.subscribeToChild(button, ButtonGroup_1.Action.UPDATE, updateCb);
8 return { id: id, label: label, buttons: buttons, disabled: disabled };
9}
10exports.getGroupedButton = getGroupedButton;