font awesome in button label

juergen_mueller

DaDaBIK Guru
Hi, Eugenio

Is there a way to use font awesome for a button label, like

$custom_buttons['MYTABLE'][$cnt]['label'] = '<i class="fas fa-file-pdf"></i> PDF ';

So far, it failed.

Cheers

Juergen
 

eugenio

Administrator
Staff member
Hello,
DaDaBIK puts the label in the value attribute of an input element, something like:

<input type="button" class="button_form" style="...STYLE...." value="...LABEL...";

So I don't think it can work that way, you can just work on the style attribute.

Adding the possibility to directly use the font awesome buttons would be a nice add, I will think about it.

Best,
 

juergen_mueller

DaDaBIK Guru
Hi Eugenio

Thanks for your reply.

This is a nice to have feature, of course, but it would make the custom buttons more coherent with the others (CSV, Insert etc.).

Best,

Juergen
 
Top