Hi Thierry,
Small suggestion:
When a button is small, with wBSwidth = "sm"
, it would be logical for the associated image to be in the same format: class = "...fa-sm"
(instead of fa-lg)

Hi Vincent,
I don't think fa-sm
exists in font-awesome V 4
that FoxinCloud uses.
We could remove fa-lg
instead
Can you share a test case?
"lg
" is in the Size
field of my awBSicon table
In wcHTMLgen() of the button, I added:
IF VARTYPE (m.toHTMLgen) = COBJECT
toHTMLgen.cScriptJSadd(TEXTMERGE ([jQuery("#<<THIS.wcID>> > span").removeClass("fa-lg").addClass("fa-sm");]))
ENDIF
Hi Vincent,
Icon size being defined once for all in awBSicon.Size
your solution is, IMHO, optimal.
Hi Vincent,
After further thinking, if the element's wBSsize
is sm
or xs
, FoxInCloud no longer adds the size attribute defined in awBsicon.Size
.
I'll soon send you the modified awHTML.prg
for your tests.
If OK, you can remove the JavaScript snippet that you shared earlier in the thread.
Great, thanks Thierry !