UNPKG

wix-style-react

Version:
35 lines (28 loc) 1.11 kB
import { dataHooks } from './constants'; var tableActionCellDriverFactory = function tableActionCellDriverFactory(component) { var getByHook = function getByHook(dataHook) { return component.$("[data-hook=\"".concat(dataHook, "\"]")); }; return { element: function element() { return component; }, /** Get the primary action placeholder element */ getPrimaryActionPlaceholder: function getPrimaryActionPlaceholder() { return getByHook(dataHooks.placeholder); }, /** Get the primary action button element */ getPrimaryActionButton: function getPrimaryActionButton() { return getByHook(dataHooks.primaryAction); }, /** Get the visible secondary actions wrapper element */ getVisibleActionsWrapper: function getVisibleActionsWrapper() { return getByHook(dataHooks.visibleActionsWrapper); }, /** Get the secondary actions popover menu element */ getHiddenActionsPopoverMenu: function getHiddenActionsPopoverMenu() { return getByHook(dataHooks.popoverMenu); } }; }; export default tableActionCellDriverFactory;