Browse Source

Fix: Table Panel fix to re-render panel when options are updated (#16376)

Re-render panel when date and string options are updated 

Fixes #16375
Benjamin Reed 6 năm trước cách đây
mục cha
commit
1e52087ae2
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      public/app/plugins/panel/table/column_options.html

+ 3 - 3
public/app/plugins/panel/table/column_options.html

@@ -13,7 +13,7 @@
       <label class="gf-form-label width-12">Column Header</label>
       <input type="text" class="gf-form-input width-12" ng-model="style.alias" ng-change="editor.render()" ng-model-onblur placeholder="Override header label">
     </div>
-    <gf-form-switch class="gf-form" label-class="width-12" label="Render value as link" checked="style.link" change="editor.render()"></gf-form-switch>
+    <gf-form-switch class="gf-form" label-class="width-12" label="Render value as link" checked="style.link" on-change="editor.render()"></gf-form-switch>
   </div>
 
   <div class="section gf-form-group">
@@ -34,11 +34,11 @@
 
     <div ng-if="style.type === 'string'">
       <gf-form-switch class="gf-form" label-class="width-10" ng-if="style.type === 'string'" label="Sanitize HTML" checked="style.sanitize"
-          change="editor.render()"></gf-form-switch>
+          on-change="editor.render()"></gf-form-switch>
     </div>
     <div ng-if="style.type === 'string'">
       <gf-form-switch class="gf-form" label-class="width-10" ng-if="style.type === 'string'" label="Preserve Formatting" checked="style.preserveFormat"
-          change="editor.render()"></gf-form-switch>
+          on-change="editor.render()"></gf-form-switch>
     </div>
 
     <div ng-if="style.type === 'number'">