UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

26 lines (24 loc) 718 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getComponentState = getComponentState; exports.getValue = getValue; var _Slider = require("./Slider.container"); /** * Selector on the state from the filter id given. * @param {object} state * @param {string} idComponent */ function getComponentState(state, idComponent) { return state.cmf.components.getIn([_Slider.DISPLAY_NAME, idComponent], _Slider.DEFAULT_STATE); } /** * Return the slider value * @param {object} state * @param {string} idComponent */ function getValue(state, idComponent) { return getComponentState(state, idComponent).get(_Slider.VALUE_ATTR, ''); } //# sourceMappingURL=Slider.selectors.js.map