summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Interface/Web/Menu.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-10 16:38:28 -0700
committerMark Wells <mark@freeside.biz>2015-07-10 16:38:28 -0700
commit0ed195595b5c7ea404c8848d9d1881ada4214489 (patch)
tree6d6f3fe6e980cd123ff7a648d27fb9eb6b16ab13 /rt/lib/RT/Interface/Web/Menu.pm
parentaf05c3dda381122e0a45f72dbc0b4e9492f13fe7 (diff)
parentdf4a68099abfa067014f36f92874fccefdea662e (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'rt/lib/RT/Interface/Web/Menu.pm')
-rw-r--r--rt/lib/RT/Interface/Web/Menu.pm14
1 files changed, 10 insertions, 4 deletions
diff --git a/rt/lib/RT/Interface/Web/Menu.pm b/rt/lib/RT/Interface/Web/Menu.pm
index 03ce8ac5a..8670b8acf 100644
--- a/rt/lib/RT/Interface/Web/Menu.pm
+++ b/rt/lib/RT/Interface/Web/Menu.pm
@@ -57,7 +57,7 @@ use URI;
use Scalar::Util qw(weaken);
__PACKAGE__->mk_accessors(qw(
- key title description raw_html escape_title sort_order target class
+ key title description raw_html escape_title sort_order target class attributes
));
=head1 NAME
@@ -70,9 +70,9 @@ RT::Interface::Web::Menu - Handle the API for menu navigation
Creates a new L<RT::Interface::Web::Menu> object. Possible keys in the
I<PARAMHASH> are L</parent>, L</title>, L</description>, L</path>,
-L</raw_html>, L<escape_title>, L</sort_order>, L</class>, L</target> and
-L</active>. See the subroutines with the respective name below for
-each option's use.
+L</raw_html>, L<escape_title>, L</sort_order>, L</class>, L</target>,
+L<attributes>, and L</active>. See the subroutines with the respective name
+below for each option's use.
=cut
@@ -139,6 +139,12 @@ Get or set the frame or pseudo-target for this link. something like L<_blank>
Gets or sets the CSS class the menu item should have in addition to the default
classes. This is only used if L</raw_html> isn't specified.
+=head2 attributes [HASHREF]
+
+Gets or sets a hashref of HTML attribute name-value pairs that the menu item
+should have in addition to the attributes which have their own accessor, like
+L</class> and L</target>. This is only used if L</raw_html> isn't specified.
+
=head2 path
Gets or sets the URL that the menu's link goes to. If the link