MCPcopy Create free account
hub / github.com/UI5/webcomponents / isSelectionCell

Function isSelectionCell

packages/main/src/TableUtils.ts:7–9  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

5const isInstanceOfTable = createInstanceChecker<Table>("isTable");
6
7const isSelectionCell = (e: Event) => {
8 return e.composedPath().some((el: EventTarget) => (el as HTMLElement).hasAttribute?.("data-ui5-table-selection-cell"));
9};
10
11const isHeaderSelectionCell = (e: Event) => {
12 return isSelectionCell(e) && e.composedPath().some((el: EventTarget) => el instanceof HTMLElement && el.hasAttribute("ui5-table-header-row"));

Callers 3

_onClickCaptureMethod · 0.85
isHeaderSelectionCellFunction · 0.85
_onclickCaptureMethod · 0.85

Calls 1

hasAttributeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…