Feature #7625
Add navigation and navigationFilter options
| Status: | Resolved | Start date: | 2010-05-05 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | Juergen Furrer | % Done: | 100% |
|
| Category: | - | Spent time: | 3.00 hours | |
| Target version: | - | |||
| Votes: | 0 |
Description
Usefull for links to accordion - elements
History
Updated by Juergen Furrer about 3 years ago
Hi Robert
Could you give some more informations or a short example, please?
TS-Script and HTML output.
Best regards
Jürgen
Updated by Robert Grede about 3 years ago
Hi Jürgen,
this is related to #7626, and provides another method:
1 $(document).ready(function() {
2 $('#accordion').accordion({
3 navigation: true,
4 navigationFilter: function() {
5 return ($(this).attr('href').toLowerCase() == location.hash.toLowerCase());
6 }
7 });
8 });
This requires the anchor in the accordion:
1 <div id="accordion">
2 <a href="#element-1-title" class="heading">Element 1 Title</a>
3 <div>
4 <p>Element 1 Text.</p>
5 </div>
6
7 <a href="#element-2-title" class="heading">Element 2 Title</a>
8 <div>
9 <p>Element 2 Text.</p>
10 </div>
11
12 <a href="#element-3-title" class="heading">Element 3 Title</a>
13 <div>
14 <p>Element 3 Text.</p>
15 </div>
16 </div>
Use a link like: http://../accordion.htm#element-2-title
The advanage to #7626: Links can be created with any linkhandler extension. But in my mind, this is not a replacement of #7626 and should be implented additionally.
Best regards
Robert
Updated by Juergen Furrer about 3 years ago
- Status changed from New to Resolved
- Assignee set to Juergen Furrer
- % Done changed from 0 to 100
You can define own options.
Define theme additional or override all options by your own