diff --git a/src/assets/css/inputs.css b/src/assets/css/inputs.css index 1b26702d7..2ec41338e 100644 --- a/src/assets/css/inputs.css +++ b/src/assets/css/inputs.css @@ -547,6 +547,14 @@ input:checked + .input-slider:before { font-size:18px; } +.input-icon-checkbox { + top: -1px; + position: relative; + margin-left:.2rem; + color: $brand-font-color-weak; + cursor: pointer; +} + .input-icon-sm { font-size:10px; margin-right: 3px; diff --git a/src/components/widget/Checkbox.js b/src/components/widget/Checkbox.js new file mode 100644 index 000000000..83636d3dc --- /dev/null +++ b/src/components/widget/Checkbox.js @@ -0,0 +1,61 @@ +import React, { Component } from 'react'; + +class Checkbox extends Component { + constructor(props) { + super(props); + } + + handleClear = () => { + const {handlePatch, widgetField, id} = this.props; + handlePatch(widgetField, '', id); + } + + render() { + const { + widgetData, disabled, fullScreen, tabIndex, handlePatch, + widgetField, id, filterWidget + } = this.props; + + return ( +
+