Prty::Html::Widget::SelectMenuColor - Selectmenü mit farbigen Einträgen
Prty::Html::Widget::SelectMenu
Siehe Basisklasse. Zusätzlich:
Wende die Farben (siehe Attribut colors) auf den Vordergrund oder auf den Hintergrund an.
colors
Liste der Farbwerte für die Elemente der Auswahlliste. Es sind alle Farbwerte (außer ($r,$g,$b)) möglich, die der Konstruktor der Klasse Prty::Color akzeptiert.
Erzeuge Auswahlmenü mit farbigen Texten:
$w = Prty::Html::Widget::SelectMenuColor->new( id=>'smc1', name=>'smc1', applyColorsTo=>'fg', options=>[qw/Apfel Birne Orange/], colors=>[qw/ff0000 006400 ff8c00/], value=>'Birne', ); print $w->html($h);
Erzeuge Auswahlmenü mit farbigen Hintergründen:
$w = Prty::Html::Widget::SelectMenuColor->new( id=>'smc1', name=>'smc1', applyColorsTo=>'bg', options=>[qw/Apfel Birne Orange/], colors=>[qw/ff0000 006400 ff8c00/], value=>'Birne', ); print $w->html($h);
$e = $class->new(@keyVal);
$html = $e->html($h); $html = $class->html($h,@keyVal);
1.106
Frank Seitz, http://fseitz.de/
Copyright (C) 2017 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Prty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Prty
CPAN shell
perl -MCPAN -e shell install Prty
For more information on module installation, please visit the detailed CPAN module installation guide.