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

Function initInputsContainer

test/lib/testHelper.js:717–748  ·  view source on GitHub ↗
(container, define, features)

Source from the content-addressed store, hash-verified

715 }
716
717 function initInputsContainer(container, define, features) {
718 assert(container.tagName.toLowerCase() === 'div');
719 container.innerHTML = '';
720
721 var ignoreFixHeight = features && features.ignoreFixHeight;
722 var ignoreInputsStyle = features && features.ignoreInputsStyle;
723
724 var inputsHeight = retrieveValue(define.inputsHeight, define.buttonsHeight, null);
725 if (inputsHeight != null) {
726 inputsHeight = parseFloat(inputsHeight);
727 }
728
729 var classNameArr = [];
730 if (features && features.className) {
731 classNameArr.push(features.className);
732 }
733 if (!ignoreInputsStyle) {
734 classNameArr.push(
735 'test-inputs',
736 'test-buttons', // deprecated but backward compat.
737 'test-inputs-style-' + (define.inputsStyle || define.buttonsStyle || 'normal')
738 );
739 }
740 if (!ignoreFixHeight && inputsHeight != null) {
741 classNameArr.push('test-inputs-fix-height');
742 container.style.cssText += [
743 'height:' + inputsHeight + 'px'
744 ].join(';') + ';';
745 }
746
747 container.className = classNameArr.join(' ');
748 }
749
750 function dealInitEachInput(inputsDefineList, inputsContainer) {
751 var idList = [];

Callers 2

initInputsFunction · 0.85
createGroupSetInputFunction · 0.85

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…