Browse Source

HUE-3835 [editor] Implement the boolean config type

Johan Ahlen 9 năm trước cách đây
mục cha
commit
24d0651

+ 4 - 0
desktop/core/src/desktop/templates/config_ko_components.mako

@@ -281,6 +281,10 @@ from desktop.views import _ko
     <input class="input-small" type="text" data-bind="textInput: value, valueUpdate:'afterkeydown'" />
   </script>
 
+  <script type="text/html" id="property-boolean">
+    <input class="input-small" type="checkbox" data-bind="checked: value" />
+  </script>
+
   <script type="text/html" id="property-csv">
     <div data-bind="component: { name: 'csv-list-input', params: { value: value, placeholder: typeof placeholder === 'undefined' ? '' : placeholder } }"></div>
   </script>