MCPcopy
hub / github.com/palantir/blueprint / isValid

Method isValid

packages/table/src/regions.ts:555–566  ·  view source on GitHub ↗
(region: IRegion)

Source from the content-addressed store, hash-verified

553 }
554
555 public static isValid(region: IRegion) {
556 if (region == null) {
557 return false;
558 }
559 if (region.rows != null && (region.rows[0] < 0 || region.rows[1] < 0)) {
560 return false;
561 }
562 if (region.cols != null && (region.cols[0] < 0 || region.cols[1] < 0)) {
563 return false;
564 }
565 return true;
566 }
567
568 public static isRegionValidForTable(region: IRegion, numRows: number, numCols: number) {
569 if (numRows === 0 || numCols === 0) {

Callers 15

regionsTests.tsFile · 0.80
DragReorderableClass · 0.80
DragSelectableClass · 0.80
MomentDateFunction · 0.80
xFunction · 0.80
VFunction · 0.80
znFunction · 0.80
NnFunction · 0.80
DnFunction · 0.80
docs-app.jsFile · 0.80
OeFunction · 0.80
YeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected