Change dynamically highlightCurrentRow?

Started by Benjamin G., August 20, 2024, 12:23:04 PM

Previous topic - Next topic

Benjamin G.

Hello,

I'm looking for an idea to dynamically modify the highlightCurrentRow style.
I have a screen with three tables with a highlightCurrentRow=yes style, but I'd like it to apply only to the "active" table dynamically ...
Any ideas?

Thanks

Reuben B.

Did you look at pseudo selectors https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_presentation_styles_006.html

Code (xml) Select
    <Style name="Table:inactive">
        <StyleAttribute name="highlightCurrentRow" value="no"/>
    </Style>





Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

Benjamin G.

Hi,

i've tried with Table:inactive and Table:focus but does'nt seems to work ...
if i use pseudo selector "Table:display:focus" for textColor it doesn't work but ":display:focus" for textColor works.
i've also tried ":display:focus" for highlightCurrentRow="yes" but doesn't work

for info tests with :
    fglrun 4.01.03 rev-3effeb69 and GBC Version 4.01.22 Build  202403061849-d202403071621

i haven't tested with 5.00 ...

Benjamin G.

Hi,

using syntax
  <Style name="Table:focus">
     <StyleAttribute name="highlightCurrentRow" value="yes" />
  </Style>

doesn't work
but specifying the style attribute of the the Table

  <Style name="Table.tlamrg_2:focus">
     <StyleAttribute name="highlightCurrentRow" value="yes" />
  </Style>
works

Thanks anyway for the tip

but