layout: docs title: Table Group By v2 description: Table Group By v2 extension of Bootstrap Table. group: extensions
{% highlight html %} {% endhighlight %}
attribute: data-group-by
type: Boolean
Detail:
Set true to group the data by the field passed.
falseattribute: data-group-by-field
type: String
Detail:
Set the field name that you want to group the data.
''attribute: data-group-by-formatter
type: Function
Detail:
The group row formatter function, takes three parameters:
value: the group by value.idx: the index of the group.data: an array of rows in the group.
Default: undefined