Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Change dynamically highlightCurrentRow?  (Read 439 times)
Benjamin G.
Posts: 124


« on: August 20, 2024, 12:23:04 pm »

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.
Four Js
Posts: 1099


« Reply #1 on: August 21, 2024, 03:13:52 am »

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

Code
  1.    <Style name="Table:inactive">
  2.        <StyleAttribute name="highlightCurrentRow" value="no"/>
  3.    </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.
Posts: 124


« Reply #2 on: August 21, 2024, 09:14:46 am »

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.
Posts: 124


« Reply #3 on: August 21, 2024, 09:24:09 am »

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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines