Hi Thierry,
I can not integrate this code (that works well from the Firefox console):
jQuery('#cple_scx-pageframe1_tabs').prop("class","nav nav-pills");
PageFrame1.wcHTMLGen()
IF THISFORM.wBSlHTMLgen
toHTMLgen.cScriptJSAdd(TEXTMERGE([jQuery('#<<THIS.wcID>>').prop("class","nav nav-pills");]))
ENDIF
I have:
Identifiant pour un sélecteur de classe attendu, mais « : » trouvé. Jeu de règles ignoré suite à un mauvais sélecteur.
Any idea ?
try this:
toHTMLgen.cScriptJSAdd(TEXTMERGE([jQuery('#<<THIS.wcID>>_tabs')];
+ [.removeClass("nav-tabs")];
+ [.addClass("nav-pills")];
+ [;]))
It's good, both work by adding _tabs to wcID To generalize, it is better to modify the basic class or the CSS file (I do not know how) ? Thanks
What do you want exactly? set nav-pills
class on all pageframe tabs?
Move the code to xxxPgf.wcHTMLgen()
, add return
as single instruction to mainscreen.Pageframe*.wcHTMLgen()
How could I know for
<<THIS.wcID >>_ tabs
?
By searching in the generated HTML which element has the nav
class.
Thank you Thierry.
I prefer to subclass my basic class xxxPgf.
I looked in my Etatciv_scx.htm file but I do not see anything about nav class
I looked in my Etatciv_scx.htm file but I do not see anything about nav class
you need to look into a form HTML that has a pageframe