You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* <li>.header - (string) Text label for a column header
11894
11894
* <li>.itemField - (string) Item field to associate with a particular column.
11895
-
* <li>.htmlTemplate - (string) (optional) id/name of an embedded ng/html template. Ex: htmlTemplate="name_template.html". The template will be used to render each cell of the column.
11895
+
* <li>.templateFn - (function) (optional) Template function used to render each cell of the column. Pro: more performant than `htmlTemplate`. Con: doesn't support AngularJS directives in the template, therefore it doesn't support things like ng-click. Example: <pre>templateFn: value => `<span class="text-danger">${value}</span>`</pre>
11896
+
* <li>.htmlTemplate - (string) (optional) id/name of an embedded ng/html template. Pro: supports AngularJS directives in the template. Con: poor performance on large tables. Ex: htmlTemplate="name_template.html". The template will be used to render each cell of the column.
11896
11897
* Use <code>handleColAction(key, value)</code> in the template to call the <code>colActionFn</code> callback function you specify. 'key' is the item attribute name; which should equal the itemFld of a column.
* <li>.colActionFn - (function) (optional) Callback function used for the column. 'value' is passed as a paramenter to the
11904
11905
* callback function.
11905
11906
* </ul>
11907
+
* <p><strong>Tip:</strong> For templating, use `tempateFn` unless you really need to use AngularJS directives. `templateFn` performs better than `htmlTemplate`.</p>
11906
11908
* @param {array} actionButtons List of action buttons in each row
11907
11909
* <ul style='list-style-type: none'>
11908
11910
* <li>.name - (String) The name of the action, displayed on the button
* <li>.header - (string) Text label for a column header
12240
12242
* <li>.itemField - (string) Item field to associate with a particular column.
12241
-
* <li>.htmlTemplate - (string) (optional) id/name of an embedded ng/html template. Ex: htmlTemplate="name_template.html". The template will be used to render each cell of the column.
12243
+
* <li>.templateFn - (function) (optional) Template function used to render each cell of the column. Pro: more performant than `htmlTemplate`. Con: doesn't support AngularJS directives in the template, therefore it doesn't support things like ng-click. Example: <pre>templateFn: value => `<span class="text-danger">${value}</span>`</pre>
12244
+
* <li>.htmlTemplate - (string) (optional) id/name of an embedded ng/html template. Pro: supports AngularJS directives in the template. Con: poor performance on large tables. Ex: htmlTemplate="name_template.html". The template will be used to render each cell of the column.
12242
12245
* Use <code>handleColAction(key, value)</code> in the template to call the <code>colActionFn</code> callback function you specify. 'key' is the item attribute name; which should equal the itemFld of a column.
* <li>.colActionFn - (function) (optional) Callback function used for the column. 'value' is passed as a paramenter to the
12250
12253
* callback function.
12251
12254
* </ul>
12255
+
* <p><strong>Tip:</strong> For templating, use `tempateFn` unless you really need to use AngularJS directives. `templateFn` performs better than `htmlTemplate`.</p>
12252
12256
* @param {array} actionButtons List of action buttons in each row
12253
12257
* <ul style='list-style-type: none'>
12254
12258
* <li>.name - (String) The name of the action, displayed on the button
0 commit comments