~ubuntu-branches/ubuntu/trusty/libhtml-widgets-navmenu-perl/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/HTML/Widgets/NavMenu.pm

  • Committer: Package Import Robot
  • Author(s): Xavier Guimard
  • Date: 2012-12-10 21:19:15 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20121210211915-htiq57aery7fx0vd
Tags: 1.0701-1
* Imported Upstream version 1.0701
* Remove spelling patch now included in upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
package HTML::Widgets::NavMenu;
5
5
 
6
 
our $VERSION = '1.0603';
 
6
our $VERSION = '1.0701';
7
7
 
8
8
package HTML::Widgets::NavMenu::Error;
9
9
 
1256
1256
is lost. A better idea would be to create a separate page within the
1257
1257
site, that will link to the external URL.
1258
1258
 
 
1259
=item li_id
 
1260
 
 
1261
This is the HTML ID attribute that will be assigned to the specific
 
1262
C<< <li> >> tag of the navigation menu. So if you have:
 
1263
 
 
1264
    'tree_contents' =>
 
1265
    {
 
1266
        'host' => "default",
 
1267
        'text' => "Top 1",
 
1268
        'title' => "T1 Title",
 
1269
        'expand_re' => "",
 
1270
        'subs' =>
 
1271
        [
 
1272
            {
 
1273
                'text' => "Home",
 
1274
                'url' => "",
 
1275
            },
 
1276
            {
 
1277
                'text' => "About Me",
 
1278
                'title' => "About Myself",
 
1279
                'url' => "me/",
 
1280
                'li_id' => 'about_me',
 
1281
            },
 
1282
        ],
 
1283
    },
 
1284
 
 
1285
Then the HTML for the About me will look something like:
 
1286
 
 
1287
    <li id="about_me">
 
1288
    <a href="me/ title="About Myself">About Me</a>
 
1289
    </li>
 
1290
 
1259
1291
=back
1260
1292
 
1261
1293
=head1 Predicate Values