Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding ID attribute to UT list templates

Scott WesleyAug 25 2015 — edited Aug 25 2015

The templates in universal theme have been maintained very well, they look flash and have classes everywhere which is great.

By wouldn't it be a simple step further to give us option to include optional ID attributes in standard list templates like Tabs?

. eg, A01 is not included in the template definition

<li class="t-Tabs-item is-active" id="#A01#"><a href="#LINK#" class="t-Tabs-link"><span class="t-Icon #IMAGE#"></span><span class="t-Tabs-label">#TEXT#</span></a></li>

And beyond that just a generic parameterisation of additional attributes using those wonderful (but unused) user attributes

If I wanted to garner some sort of value or meaning or identification to a selected tab, I see three options

  1. Add a class as an IMAGE, and use string manipulation to harvest the value
  2. Create a copy of the tabs template, adding in my attribute - but then I'm detached from the universal theme
  3. add IDs on page load

$('#p1_mytab .t-Tabs-link').each( function(e) {

     var x;

     switch($(this).text())

      {

      case 'A':

       x=0;break;

      case 'B':

       x=1;break;

      case 'C':

       x=2;break;

       }

  $(this).attr('id',x);

  });

Which seems very hacky.

Any suggestions?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 22 2015
Added on Aug 25 2015
0 comments
255 views