How to insert title in pagination links and button::make - Yajra Laravel Datatables

Asked

Viewed 38 times

-1

Hello, everybody!

I use Datatables for Yajra’s Laravel, and I need to adapt it to accessibility.

Unfortunately, I am unable to insert title in the Button::make or pagination links.

Regarding Button::make, I tried to insert the title, as it is done in Column::make, however, it didn’t work... Already pagination, I can’t imagine how could insert the title.

Any idea how to do that? From now on I thank you all!

Like it’s done on the Column:

Column::make('descricao')->title('Descrição')

Like I tried to do with Button:

    public function html()
{
    return $this->builder()
                ->setTableId('data-table')
                ->columns($this->getColumns())
                ->minifiedAjax()
                ->dom('Bfrtip')
                ->orderBy(1, 'desc')
                ->buttons(
                    Button::make('postExcel')->text('<i class="fa fa-download" aria-hidden="true"></i> Excel')->title('Download planilha Excel'),
                    Button::make('postCsv')->text('<i class="fa fa-download" aria-hidden="true"></i> CSV'),
                    Button::make('reset')->text('Limpar'),
                )
                ->parameters([
                    "language" => [ 'url' => asset('/portuguese-brasil.json')]
                ]);
}
  • Button::make('postExcel')->text(' Excel')->title('Download Excel spreadsheet'),

  1. PHP Version: 7.4.3
  2. Laravel Version: 6.18.14
  3. Laravel-Datatables Version: 1.5.0
  4. Used Service Implementations of the Yajra Laravel Datatables

1 answer

0


Resolution:

Button::make('postExcel')->text('<span title="Download planilha Excel"><i class="fa fa-download" aria-hidden="true"></i> Excel</span>')

Browser other questions tagged

You are not signed in. Login or sign up in order to post.