Inserting a HideShow Component

To insert a hideShow component:

  1. In the Design Structure Window of the desired file, locate the parent node in which you wish to insert a hideShow component, e.g., sideBar or styledList.
  2. In the Component Palette, select Layout Components from the dropdown list, and then drag and drop the hideShow component to the parent node of your choice.

    The hideShow node is inserted and highlighted under the expanded parent node in the Design Structure Window. The Property Inspector shows the attributes you can set for the hideShow component.

  3. In the Property Inspector, set the following attributes for the hideShow component you inserted:
  4. To insert an indexed child component into hideShow , drag and drop a component from the Component Palette to the hideShow node, and then use the Property Inspector to set the attributes for the child. Repeat to add additional indexed children as desired.
  5. To use the prompt named child, do the following:
    1. In the Design Structure Window, expand the hideShow node, then expand the hideShow Named Children node to uncover the prompt node.
    2. Right-click the prompt node and choose Insert inside prompt | link.
    3. In the Property Inspector, set the following attributes for the link component:
      • text - Enter the text to display next to the arrow icon.
      • destination - Enter the URI that the prompt link references.

Note: To use data binding, see Data Binding a Component Attribute.

Example (UIX XML)


...
<page ...>
   ...
   <pageLayout>
   ...
     <hideShow disclosed="true" id="hs1">
       <prompt>
         <link text="Text next to icon" destination="#"/>
       </prompt>
       <contents>
         Put indexed children here
       </contents>
     </hideShow>
   ...
   <!-- REST OF PAGE LAYOUT -->
   <pageLayout>
 ...
 <handlers>
   <event name="hide">
     ...
   </event>
   <event name="show">
     ...
   </event>
 </handlers>
</page>    

About HideShow
About HideShowHeader

Inserting a HideShowHeader Component
Working with Layout Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.