Laravel-datatables: Hide all/don't show print buttons datatable service

Created on 7 Nov 2020  路  2Comments  路  Source: yajra/laravel-datatables

Summary of problem or feature request


I have problem with the buttons. I need to hide all print buttons but it can't. I have tried using javascript $('.dt-buttons')[0].style.visibility = 'hidden'; but it still shown all buttons. I've tried to make button empty but still can't work.

Code snippet of problem

public function html()
    {
        return $this->builder()
                    ->setTableId('dataTable')
                    ->columns($this->getColumns())
                    ->minifiedAjax()
                    ->dom('Bfrtip')
                   //what should i put here for hide all print button
                    ->addClass('table-responsive');
   }

System details

  • Operating System : windows 10
  • PHP Version : PHP 7.3.10
  • Laravel Version : 6.2
  • Laravel-Datatables Version :
    "yajra/laravel-datatables-buttons": "~4.6",
    "yajra/laravel-datatables-oracle": "~9.0"
question

Most helpful comment

Remove the button dom?

->dom('frtip')

All 2 comments

Remove the button dom?

->dom('frtip')

Thanks! @yajra

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josiahke picture josiahke  路  3Comments

ghost picture ghost  路  3Comments

kamrava picture kamrava  路  3Comments

vipin733 picture vipin733  路  3Comments

ahmadbadpey picture ahmadbadpey  路  3Comments