sandbox/sandbox.js
function setHandlers() {
    d3.select(`.${chartSelectorClass}`).on('change', _handleChartSelectorChange);
    d3.select(`.${dataSelectorClass}`).on('change', _handleDataSelectorChange);

    d3.select(`.${dataSubmitButtonClass}`).on('click', _handleDataUpdate);
    d3.select(`.${dataResetButtonClass}`).on('click', _handleDataReset);
    d3.select(`.${dataInputSizeToggleClass}`).on('click', _handleDataSizeToggle);

    d3.select(`.${configSubmitButtonClass}`).on('click', _handleConfigUpdate);
    d3.select(`.${configResetButtonClass}`).on('click', _handleConfigReset);

    d3.select(`.${configAddTooltipClass}`).on('click', _handleAddTooltip.bind(null, tooltipTypes.basic))
    d3.select(`.${configAddMiniTooltipClass}`).on('click', _handleAddTooltip.bind(null, tooltipTypes.mini))
}
function setHandlers() {
    d3.select(`.${chartSelectorClass}`).on('change', _handleChartSelectorChange);
    d3.select(`.${dataSelectorClass}`).on('change', _handleDataSelectorChange);

    d3.select(`.${dataSubmitButtonClass}`).on('click', _handleDataUpdate);
    d3.select(`.${dataResetButtonClass}`).on('click', _handleDataReset);
    d3.select(`.${dataInputSizeToggleClass}`).on('click', _handleDataSizeToggle);

    d3.select(`.${configSubmitButtonClass}`).on('click', _handleConfigUpdate);
    d3.select(`.${configResetButtonClass}`).on('click', _handleConfigReset);

    d3.select(`.${configAddTooltipClass}`).on('click', _handleAddTooltip.bind(null, tooltipTypes.basic))
    d3.select(`.${configAddMiniTooltipClass}`).on('click', _handleAddTooltip.bind(null, tooltipTypes.mini))
}
function setHandlers ( ) { d3 . select ( ` ${ chartSelectorClass } ` ) . on ( 'change' , _handleChartSelectorChange ) ; d3 . select ( ` ${ dataSelectorClass } ` ) . on ( 'change' , _handleDataSelectorChange ) ; d3 . select ( ` ${ dataSubmitButtonClass } ` ) . on ( 'click' , _handleDataUpdate ) ; d3 . select ( ` ${ dataResetButtonClass } ` ) . on ( 'click' , _handleDataReset ) ; d3 . select ( ` ${ dataInputSizeToggleClass } ` ) . on ( 'click' , _handleDataSizeToggle ) ; d3 . select ( ` ${ configSubmitButtonClass } ` ) . on ( 'click' , _handleConfigUpdate ) ; d3 . select ( ` ${ configResetButtonClass } ` ) . on ( 'click' , _handleConfigReset ) ; d3 . select ( ` ${ configAddTooltipClass } ` ) . on ( 'click' , _handleAddTooltip . bind ( null , tooltipTypes . basic ) ) d3 . select ( ` ${ configAddMiniTooltipClass } ` ) . on ( 'click' , _handleAddTooltip . bind ( null , tooltipTypes . mini ) ) }
Sets handlers on all of our input fields on the sandbox dom
Sets handlers on all of our input fields on the sandbox dom