Extended "customControls_controlTemplate_command"
This commit is contained in:
1 file changed
+6
-1
@@ -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 -->
|
||||
Reference in new issue
Block a user