瀏覽代碼

HUE-3835 [editor] Implement the boolean config type

Johan Ahlen 9 年之前
父節點
當前提交
24d065133f
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      desktop/core/src/desktop/templates/config_ko_components.mako

+ 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>