CGI-Widget-Tabs
view release on metacpan or search on metacpan
lib/CGI/Widget/Tabs/Heading.pm view on Meta::CPAN
# display the full heading...
# ...but use a small key as query param value
$h->text("Remote Configurations");
$h->key("rc");
In contrast to the use of key/value pairs, CGI::Widget::Tabs knows that this
is a key and not a value. After all, you are using the key() method, right?
Consequently you don't need the prepend the key with a hyphen ("-"). You may
consider using a hyphen for your keys nevertheless. It will lead to more
transparent code. Observe how the snippet from above with a prepended "-"
will later on result in the following check:
if ( $tab->active eq "-rc" ) { # clearly we are using keys ....
Consider this a mild suggestion.
=cut
sub key {
#
( run in 0.846 second using v1.01-cache-2.11-cpan-a1d94b6210f )