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

How to add classes/id to column header? #52

Closed
iosiflivadaru opened this issue Aug 16, 2020 · 1 comment
Closed

How to add classes/id to column header? #52

iosiflivadaru opened this issue Aug 16, 2020 · 1 comment

Comments

@iosiflivadaru
Copy link

I was wondering what would be the best practice to add classes and id to a column. As you can see below, they are empty and I can't seem to find a way to populate that...

image

@rappasoft
Copy link
Owner

See these methods:

/**
 * Used to set a class on a table header based on the column attribute
 */
public function setTableHeadClass($attribute) : ?string;

/**
 * Used to set a ID on a table header based on the column attribute
 */
public function setTableHeadId($attribute) : ?string;

/**
 * Used to set any attributes on a table header based on the column attribute
 * ['name' => 'my-custom-name', 'data-key' => 'my-custom-key']
 */
public function setTableHeadAttributes($attribute) : array;

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

No branches or pull requests

2 participants