expandcurrent
This attribute set to true forces to expand the current node when using the types clicktree or hovertree. As default this attribute is set to false. This attribute also requires the attribute current, wich sets the current node.
<cfparam name="url.id" default=""> <cf_dbtree instancename="instance id" datasource="datasource name" table="table name" action="get" type="hovertree" url_type="param" url="web/help/expandcurrent.cfm?id=" url_param="id" id="column name" parent="column name" contentfield="column name" current="#url.id#" expandcurrent="true">
Demo
Here's a example to demonstrate how you can expand a menu from a given ID. When clicking on a menu item, the page reloads and expands this item. The active item, the item you have clicked before, will have <li id="instanceName_active"> so you can give it a special style too. E.g.
#instancename #instancename_active a{
color: #228B22;
background-color: #FFFAB5;
}
Add Comment
Join for a free account, or login if you are already a member.
Search
Attributes A-Z
- A
- B
- C
- D
- E
- F
- I
- J
- L
- M
- N
- P
- Q
- R
- S
- T
- U
