Extended "customControls_controlTemplate_command"

This commit is contained in:
electr0sheep committed 2018-02-23 18:00:54 -07:00
1 parent b108fc939c
commit 9a8b8d86d5
1 file changed
+6 -1
+6 -1
View File
@@ -173,6 +173,11 @@
<label style="cursor: default" data-bind="text: output"></label>
</script>
<script type="text/html" id="customControls_controlTemplate_command">
<button class="btn" data-bind="text: name, enable: $root.isCustomEnabled($data), click: function() { $root.clickCustom($data) }"></button>
<!-- ko if: $data.customClass -->
<button data-bind="text: name, attr: { 'class': customClass }, enable: $root.isCustomEnabled($data), click: function() { $root.clickCustom($data) }"></button>
<!-- /ko -->
<!-- ko ifnot: $data.customClass -->
<button class="btn" data-bind="text: name, enable: $root.isCustomEnabled($data), click: function() { $root.clickCustom($data) }"></button>
<!-- /ko -->
</script>
<!-- End of templates for custom controls -->