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

Method end

packages/main/src/GridWalker.ts:64–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 end() {
65 this.colPos = this.getColPos();
66 if (this.colPos === 0) {
67 const endRowPos = this.grid.length - 1;
68 const lastRowPos = endRowPos + this.lastRowPos;
69 this.rowPos = (this.rowPos < lastRowPos) ? lastRowPos : endRowPos;
70 } else {
71 const lastColPos = this.grid[this.rowPos].length - 1;
72 this.colPos = (this.colPos < lastColPos) ? lastColPos : 0;
73 }
74 }
75
76 setGrid(grid: unknown[][]) {
77 this.grid = grid;

Callers 8

configureServerFunction · 0.80
formatFunction · 0.80
diffable-html.jsFile · 0.80
StreamFunction · 0.80
onEndNTFunction · 0.80
onEofChunkFunction · 0.80
onendFunction · 0.80
_onkeydownMethod · 0.80

Calls 1

getColPosMethod · 0.95

Tested by

no test coverage detected