MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getRowAction

Function getRowAction

test/unit/core/ui-react/ui-react-inspector.test.tsx:34–46  ·  view source on GitHub ↗
(
  tableTitle: string,
  rowId: string,
  actionTitle: string,
)

Source from the content-addressed store, hash-verified

32};
33
34const getRowAction = (
35 tableTitle: string,
36 rowId: string,
37 actionTitle: string,
38): HTMLElement => {
39 const row = getDetails(tableTitle)
40 .querySelector(`th[title="${rowId}"]`)
41 ?.closest('tr');
42 expect(row).not.toBeNull();
43 const action = row?.querySelector(`img[title="${actionTitle}"]`);
44 expect(action).not.toBeNull();
45 return action as HTMLElement;
46};
47
48const getValueAction = (valueId: string, actionTitle: string): HTMLElement => {
49 const row = getDetails('Values')

Callers 1

Calls 1

getDetailsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…