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
Copy file name to clipboardExpand all lines: documentation/30-complex-field/5-config-methods.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,11 @@ Allows for a [Lodash template](https://lodash.com/docs/4.17.4#template) to be us
68
68
69
69
The passed `$template` can also be a [callback](http://php.net/manual/en/language.types.callable.php).
70
70
71
-
___Note:___ Dashes in field names must be replaced with underscores. For example `field-name-with-dashes` must be referred to as `<%- field_name_with_dashes %>` in `set_header_template()`.
71
+
___Note:___ Dashes in field names must be replaced with underscores.
72
+
Example: `field-name-with-dashes` must be referred to as `<%- field_name_with_dashes %>` in `set_header_template()`
73
+
74
+
___Note:___ The group index is available as `$_index` (0-based).
75
+
Example: `->set_header_template('This is group <%- $_index %>')`
0 commit comments