Book a Demo

Author Topic: Web style template: default expand advanced info  (Read 2730 times)

JVerweij

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Web style template: default expand advanced info
« on: October 16, 2013, 04:35:43 am »
For an element/object in the html output:

Is is possible to expand the Advanced (click on +) by default?

I've made a custom html style template (Project/resources)

The advanced button is in the template 'Body - Object':

src="#IMAGES#/plus03.gif" align="absmiddle" id="adv" onclick="parent.toggleData(this.id)" />Advanced:</td>

How can I change the default to expanded?

Jan

JVerweij

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Web style template: default expand advanced in
« Reply #1 on: October 16, 2013, 07:51:46 pm »
Goal: immediately click on the diagram links in expanded advanced section.

I've found a possible solution:

Original script in Body-Object:
            <tr>
                  <td class="ObjectDetailsTopic"><img src="#IMAGES#/plus03.gif" align="absmiddle" id="adv" onclick="parent.toggleData(this.id)" />Advanced:</td>
                  <td class="ObjectDetailsValue"></td>
            </tr>
            <tr id="adv00" style="display:none;">
                  <td class="ObjectDetailsTopic" style="padding-left: 18px;">UUID:</td>
                  <td class="ObjectDetailsValue">#GUID#</td>
            </tr>
            <tr id="adv01" style="display: none;">
                  <td class="ObjectDetailsTopic" style="padding-left: 18px;">Appears In:</td>
                  <td class="ObjectDetailsValue">#DIAGRAMS#</td>
            </tr>


New script:
            <tr>
                  <td class="ObjectDetailsTopic"><img src="#IMAGES#/minus03.gif" align="absmiddle" id="adv" onclick="parent.toggleData(this.id)" />Advanced JV Klik op plus voor linkjes naar diagrammen:</td>
                  <td class="ObjectDetailsValue"></td>
            </tr>
            <tr id="adv00" style="display:;">
                  <td class="ObjectDetailsTopic" style="padding-left: 18px;">UUID:</td>
                  <td class="ObjectDetailsValue">#GUID#</td>
            </tr>
            <tr id="adv01" style="display:;">
                  <td class="ObjectDetailsTopic" style="padding-left: 18px;">Appears In:</td>
                  <td class="ObjectDetailsValue">#DIAGRAMS#</td>
            </tr>

Four changes:
1. images: plus03 replaced by minus03
2. Advanced: replaced bij Advanced ........dutch words..
3. adv00: display : none replaced bij display:
4. adv01: display : none replaced bij display:

Now you can directly click on the diagram links

Jan