1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var ButtonGroup_1 = require("../actions/ButtonGroup");
|
4 | function 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 | }
|
10 | exports.getGroupedButton = getGroupedButton;
|