Skip to content

Commit

Permalink
Documentation for html attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
aginev-fos committed Aug 26, 2015
1 parent d0741d2 commit 09b463a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ $grid
'has_filters' => true,
// Pass array of data to the filter. It will generate select field.
'filters' => Role::all()->lists('title', 'id'),
// Define HTML attributes for this column
'attributes' => [
'class' => 'custom-class-here',
'data-custom' => 'custom-data-attribute-value',
],
])
->setColumn('created_at', 'Created', [
'sortable' => true,
Expand Down

0 comments on commit 09b463a

Please sign in to comment.