MCPcopy
hub / github.com/apache/echarts / validateOptionIndex

Function validateOptionIndex

test/lib/testHelper.js:1308–1320  ·  view source on GitHub ↗
(optionIndex)

Source from the content-addressed store, hash-verified

1306 }
1307
1308 function validateOptionIndex(optionIndex) {
1309 if (getType(optionIndex) !== 'number'
1310 || optionIndex < 0
1311 || optionIndex >= selectCtx._optionList.length
1312 ) {
1313 console.error(
1314 errMsgPrefix + ' Invalid select, optionIndex: ' + optionIndex + ' is out if range.'
1315 + ' May caused by test case change.'
1316 );
1317 return false;
1318 }
1319 return true;
1320 }
1321
1322 function setSelectInputInitValue(inputDefine) {
1323 var initOptionIdx = 0;

Callers 2

createSelectInputFunction · 0.85
setSelectInputStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…