Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional attributes for column (table header) #379

Merged
merged 3 commits into from
Jul 10, 2021
Merged

additional attributes for column (table header) #379

merged 3 commits into from
Jul 10, 2021

Conversation

devsrv
Copy link
Contributor

@devsrv devsrv commented Jun 28, 2021

Sometimes it is useful to use some additional attributes for the table header, for example if the column name is too long we may limit the string character & display a tooltip when hover.

users can add additional attributes as:

Column::make('Candidate', 'fname')
->addClass('foobar')
->addAttributes(['data-toggle' => 'tooltip', 'data-placement' => 'top', 'title' => 'Tooltip on top'])

with the addition of addAttributes() method the addClass() method becomes useless but for backward compatibility this can be removed on future major release.

@rappasoft rappasoft merged commit f280c14 into rappasoft:develop Jul 10, 2021
@rappasoft rappasoft mentioned this pull request Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants