Replies: 2 comments 2 replies
|
I have no such example in my app. Anyways: the default value is probably not necessary in 99% of all calls. I think it was mainly introduced for the menu, where you can add fontawesome classes directly ( To answer your question: IMO the order of the parameters is wrong, because you want to toggle the Do you want to PR that change? |
|
TBH, Even for my menu, I've removed the
Example menu WITH and WITHOUT |




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hey @kevinpapst,
wondering what is the purpose of
$defaultin thetabler_iconTWIG function.TablerBundle/src/Twig/RuntimeExtension.php
Lines 131 to 134 in 8a70eaa
Due to that,
all of my calls of this function (when not using buttons), are made with
nullfor that parameter.{{ tabler_icon('email', null, false) }}Two questions arise from this:
falseto remove.iconclass..iconcss when using it outside of.btn.My current problem is that the render with
iconclass and font-awesome is kinda ugly:fas fa-cogs)Today

.iconclass: 🥉.iconclass overridden: 🥈Without

.iconclass: 🥇WDYT ?
All reactions