Closed ReDeLe-design closed 1 year ago
Icons inside buttons are also possible. The following code:
$attr_delete = array(
"class" => "danger go-right",
"id" => "btn-delete-modal",
"onclick" => "openModal('delete-modal')",
"innerHTML" => '<i class="fa fa-trash-o fa-lg"></i> Löschen'
);
echo form_button('delete', 'delete_all', $attr_delete);
renders this nice button:
Make a backward compatible possibility to have a submit with an other label than the value. This is mandatory for localization. This works also for the function form_button.