[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
RISC - tabbedpane isn't fully stylable  XML
Forum Index -> Development
Author Message
rpfautz

Active

Joined: 15/03/2017 17:03:05
Messages: 6
Offline

Hi,

the jsp-element t:tabbedpane is represented by a risctabbedline in the RISC client which contains the tabs and the content. For the tabs there is another risctabbedline in the risctabbedline. Looks like this in the browser:
<div class="MyTabbedline" ...
<div class="risctabbedline" ...
<div class="risctabbedline_button_selected first last" ...
<div class="risctabbedline_button" ...

In the riscstyle.xml it looks like this:
<class n="MyTabbedline" extends="risctabbedline">
...
<class n="_button" ...
<class n="_button_selected" ...

jsp looks like this:
<t:tabbedpane id="g_9" stylevariant="MyTabbedpane" ...

style.xml looks like this:
<tag name="t:tabbedpane" variant="MyTabbedpane" >
<set attribute="styleseq" value="MyTabbedline" />
</tag>

For the outer risctabbedline this is working perfectly.
We tried some stuff to get that inner risctabbedline in the riscstyle.xml, but wasn't able to find a working way to customize this for a special stylevariant.

The inner risctabbedline should be reachable in the riscstyle.xml to override it.

Regards, Roger
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,
this is a change we just did some weeks ago. (I hope that we are talking about the same issue... - but am pretty sure.)

The XML of the style looks now:
Code:
     <class n="risctabbedpane">
         <style n="border" v="0px"/>
         <class n="_tabbedline" extends="risctabbedline">
         </class>
         <class n="_content">
             <risc condition="@edged@" n="background" v="@shadedBackground@"/>
             <risc condition="@rounded@" n="background" v="transparent"/>
             <risc n="inset" v="10 10 10 10"/>
             <risc condition="@edged@" n="border" v="0 1 1 1"/>
             <risc condition="@rounded@" n="border" v="1 1 1 1"/>
             <style condition="@edged@" n="border" v="1px solid @containerBorderColor@"/>
             <style condition="@edged@" n="border-top" v="0px solid #c0c0c0"/>
             <style condition="@rounded@" n="border" v="1px solid #C0C0C0"/>
             <style condition="@rounded@" n="border-radius" v="10px"/>
             <style condition="@edged@" n="background" v="@shadedBackground@"/>
             <style condition="@rounded@" n="background" v="transparent"/>
         </class>
     </class>
 
 


So the "_tabbedline" and the "_content" classes are inner parts of "risctabbedpane" - and you can override when deriving your own style.

Regards, Björn

Björn Müller, CaptainCasa GmbH
rpfautz

Active

Joined: 15/03/2017 17:03:05
Messages: 6
Offline

Hi,

that sounds good, but what we get in the html (with version 20170412) is this:
Code:
 <div class="myTabbedpane">
     <div class="risctabbedline">
     <div class="myTabbedpane_content">
 


with this riscstyle-configuration:
Code:
     <class n="myTabbedpane" extends="risctabbedpane"> <!--with and without the extends the same problem-->
         <class n="_tabbedline" extends="risctabbedline">
         </class>
     </class>
 


So for myTabbedpane_content that works (but also worked with the risctabbedline). The class of the risctabbedline is simply "risctabbedline", but should be myTabbedpane_tabbedline to be able to style it that way.


When I look into the demo server there is the same problem:
Code:
 <div class="risctabbedpane">
     <div class="risctabbedline">
     <div class="risctabbedpane_content">
 


So the inner risctabbedline isn't styleabel in the risctabbedpane.

Regards, Roger
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

finally we fixed this issue - and the "_tabbedline" is addressed now. The fix is part of next Monday's update.
If you want to overcome this issue faster: you may directly set the style name for the tabbedline via TABBEPPANE-STYLESEQTAB. We do (now: did) the same thing in our defaulrisc/style.xml file with style variant "topmenu":

Code:
     <tag name="tabbedpane" variant="topmenu">
         <set attribute="styleseq" value="risctabbedpane_ribbon"/>
         <set attribute="styleseqtabs" value="risctabbedline_ribbon"/>
     </tag>
 


Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team