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 (
+
+
+ {(filterWidget && !disabled && !widgetData[0].readonly) ?
+
+
+ : ''
+ }
+
+ );
+ }
+}
+
+export default Checkbox;
diff --git a/src/components/widget/RawWidget.js b/src/components/widget/RawWidget.js
index 9de4f8a80..804f14744 100644
--- a/src/components/widget/RawWidget.js
+++ b/src/components/widget/RawWidget.js
@@ -7,6 +7,7 @@ import Lookup from './Lookup/Lookup';
import DatetimeRange from './DatetimeRange';
import List from './List/List';
import ActionButton from './ActionButton';
+import Checkbox from './Checkbox';
import Image from './Image';
import DevicesWidget from './Devices/DevicesWidget';
@@ -483,33 +484,11 @@ class RawWidget extends Component {
)
case 'YesNo':
return (
-
+
)
case 'Switch':
return (