UNPKG

@3mo/split-button-dialog-adapter

Version:

The @3mo/dialog adapter of the @3mo/split-button component

10 lines (9 loc) 485 B
import { Dialog } from '@3mo/dialog'; import { SplitButton } from '@3mo/split-button'; Dialog.executingActionAdaptersByComponent.set(SplitButton, (button, isExecuting) => { var _a, _b; const Constructor = (_a = button.firstElementChild) === null || _a === void 0 ? void 0 : _a.constructor; if (Constructor) { (_b = Dialog.executingActionAdaptersByComponent.get(Constructor)) === null || _b === void 0 ? void 0 : _b(button.firstElementChild, isExecuting); } });