FoxInCloud
Tabs and pills
Gravatar is a globally recognized avatar based on your email address. Tabs and pills
  Vincent H.
  All
  Aug 7, 2018 @ 11:00am

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 ?

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 8, 2018 @ 12:20am

try this:

toHTMLgen.cScriptJSAdd(TEXTMERGE([jQuery('#<<THIS.wcID>>_tabs')];
+ [.removeClass("nav-tabs")];
+ [.addClass("nav-pills")];
+ [;]))
Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 8, 2018 @ 02:49am

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

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 8, 2018 @ 02:52am

What do you want exactly? set nav-pills class on all pageframe tabs?

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 8, 2018 @ 03:26am

Yes, except in the main screen.
How could I know for <<THIS.wcID >>_ tabs ?

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 8, 2018 @ 03:43am

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.

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 8, 2018 @ 05:13am

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

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  FoxInCloud Support - Thierry N.
  Vincent H.
  Aug 8, 2018 @ 05:38am

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

Gravatar is a globally recognized avatar based on your email address. re: Tabs and pills
  Vincent H.
  FoxInCloud Support - Thierry N.
  Aug 8, 2018 @ 05:45am

But good God ...
I look in the base class and not in the screen !

My class works fine

© 1996-2024