Skip to content

ButtonGroupColumn set width/class attributes #910

Closed Answered by bayukartiko
howdu asked this question in Q&A
Discussion options

You must be logged in to vote

maybe you haven't read the documentation completely https://rappasoft.com/docs/laravel-livewire-tables/v2/columns/other-column-types#content-button-group-columns.

I think this is what you want:

   ButtonGroupColumn::make('Actions')
      ->attributes(function($row) {
         return [
            'class' => 'text-center',
         ];
      })
      ->buttons([])

or if you want the Actions column is small than others column, maybe you must tried this: https://rappasoft.com/docs/laravel-livewire-tables/v2/datatable/available-methods#content-setthattributes

    $this->setThAttributes(function(Column $column) {
        if ($column->getTitle() == "Actions") {
            return [
            …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by howdu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants