MCPcopy
hub / github.com/dream-num/univer / executeCommand

Function executeCommand

packages/ui/src/views/components/ribbon/ToolbarItem.tsx:41–44  ·  view source on GitHub ↗
(commandId: string, params?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

39 const { value, hidden, disabled, activated, selectionsValue } = useToolbarItemStatus(props);
40
41 const executeCommand = (commandId: string, params?: Record<string, unknown>) => {
42 layoutService.focus();
43 commandService.executeCommand(commandId, params);
44 };
45
46 const { tooltip, shortcut, icon, title, label, id, commandId, type, slot, params } = props;
47

Callers 4

handleSelectFunction · 0.85
handleClickFunction · 0.85
renderButtonTypeFunction · 0.85

Calls 2

focusMethod · 0.65
executeCommandMethod · 0.65

Tested by

no test coverage detected