I'm wondering if there's a way to set a custom icon for the standard buttons. In particular, the font-awesome 'fa-refresh' is not part of the set. I'm looking to change it to fa-sync. Available (free) icons here: https://fontawesome.com/icons?d=gallery&q=refresh&m=free
From MyDatable.php
public function html()
{
return $this->builder()
->buttons(
Button::make('create'),
Button::make('colvis'),
Button::make('print'),
Button::make('reset'),
Button::make('reload'),
);
}
Outputs the following:
<button class="dt-button buttons-reload" tabindex="0" aria-controls="people-table" type="button">
<span>
<svg class="svg-inline--fa fa-refresh fa-w-16" aria-hidden="true" focusable="false" data-prefix="fa" data-icon="refresh" ...></path>
...
</svg><!-- <i class="fa fa-refresh"></i> --> Reload
</span>
</button>
I'd like to change fa-refresh to fa-sync and not sure the best spot to do so.
And a classic case of finding an answer immediately after posting a question.
Solution:
Button::make('reload')->text('<i class="fa fa-sync"></i> Reload'),
Most helpful comment
And a classic case of finding an answer immediately after posting a question.
Solution: