MCPcopy Create free account
hub / github.com/tinyplex/tinybase / getRowAction

Function getRowAction

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

Source from the content-addressed store, hash-verified

35};
36
37const getRowAction = (
38 tableTitle: string,
39 rowId: string,
40 actionTitle: string,
41): HTMLElement => {
42 const row = getDetails(tableTitle)
43 .querySelector(`th[title="${rowId}"]`)
44 ?.closest('tr');
45 expect(row).not.toBeNull();
46 const action = row?.querySelector(`img[title="${actionTitle}"]`);
47 expect(action).not.toBeNull();
48 return action as HTMLElement;
49};
50
51const getValueAction = (valueId: string, actionTitle: string): HTMLElement => {
52 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…