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!

APEX Tree - Selected Node Text in Bold

Prashanth Raju-OracleJul 25 2019 — edited Aug 1 2019

Hello APEXPERTS,

I am using APEX 19.1. In my page I have a APEX Tree region. Based on my page item value (Ex: P1_SELECTED_NODE), I am setting the "Selected Node Page Item" in the Tree attribute. When my page loads it correctly sets the selected node by highlighting the node background color in GREY (applies some CSS to it). Now my requirement is to make the selected node text to display as BOLD. I achieved this by using below inline CSS on property. (Where my_tree is the static id of my tree region)

/*Bold Current Tree Node*/

#my_tree .is-selected .a-TreeView-label{

font-weight: bold;

}

But the issue is when I hit "Collapse All" button then the Root Node gets Highlighted in BOLD/Grey Background.

I see the similar issue in "Sample Tree" application. For example lets say if any Child node is selected and then if I hit "Collapse All" button then its Parent Node gets highlighted and again if I "Expand All" then my "Selected Node" highlighting is gone. Below images details about the issue.

  1. My Selected Node using Page Item on Page Load

Selected_Node.png

  1. On click of "Collapse All", All the nodes get collapsed and tree highlights to parent node.

Collapse_All.png

  1. On click of "Expand All", the selected node highlighting still stays at parent node instead of my child node.

Expand_All.png

My requirement is to retain the selected node from Page Item as intact. It should not change on click of "Expand All" or "Collapse All" button.

Is there any way to set the CSS only for the selected node from page item?

Thanks in advance.

Comments
Post Details
Added on Jul 25 2019
2 comments
2,462 views