MCPcopy Index your code
hub / github.com/apache/echarts / getSelectInputState

Function getSelectInputState

test/lib/testHelper.js:1256–1270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1254 }
1255
1256 function getSelectInputState() {
1257 var optionIndex = getSelectInputOptionIndex();
1258 var state = {};
1259 state.optionIndex = optionIndex;
1260 state.disabled = selectCtx._disabled;
1261 if (selectCtx._optionIdxToSubInput.length) { // Make literal state short to save space.
1262 state.optionStateMap = {};
1263 for (var optionIdx = 0; optionIdx < selectCtx._optionIdxToSubInput.length; optionIdx++) {
1264 if (selectCtx._optionIdxToSubInput[optionIdx]) {
1265 state.optionStateMap[optionIdx] = selectCtx._optionIdxToSubInput[optionIdx].getState();
1266 }
1267 }
1268 }
1269 return state;
1270 }
1271
1272 function setSelectInputState(state) {
1273 if (!isObject(state)) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…