Link to home
Start Free TrialLog in
Avatar of marios
marios

asked on

Expanded/Collapsed twisties for HTML view

I have a categorized view shown as HTML on a view template:

1. Is it true that I can only show one expanded category at a time?

2. How can I show the proper twistie (expanded/collapsed) for each category? In other words, how can I detect whether my category is expanded or collapsed? As I understand it, I need to use @IsExpanded, except that @IsExpanded is not available on the web!

Thanks
Avatar of AndrewJayPollack
AndrewJayPollack

the URL command syntax (in the designer help file) gives you some language that can be applied in the URL to open or close specific sections or categories.  It is not, unfortunately, very complete.
You can also look in the 'Domino Url Cheatsheet' at http://www-10.lotus.com/ldd/today.nsf/lookup/domino_url_cheat_sheet . find the line "Optional arguments for OpenView".

But there is a great "tip" on twities and the web at http://www.tlcc.com/tlcc/tips/notwistietip.nsf

Avatar of Zvonko
Answer:
1#: It is NOT true. You can have ALL twisties expanded :)
2#: The URL behind the actual twistie tell you what the next operation will be. If it contains "&Expande=", then it is actually collapsed :-)

But I assume you like to do this expanding and collapsing stuff on the browser client with DHTML, am I right?

Avatar of marios

ASKER

Correct, I want to do the expanding/collapsing on the browser side with DHTML.
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of marios

ASKER

Thanks! Just what I was looking for! Haven't tried it yet, but I will. Thanks again.
Thanks for the points :-)