Quiq::Html::Widget::SelectMenuColor - Selectmenü mit farbigen Einträgen
Quiq::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 Quiq::Color akzeptiert.
Wenn wahr, liefere undef als Widget-Code.
undef
Erzeuge Auswahlmenü mit farbigen Texten:
$w = Quiq::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 = Quiq::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.191
Frank Seitz, http://fseitz.de/
Copyright (C) 2020 Frank Seitz
This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Quiq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Quiq
CPAN shell
perl -MCPAN -e shell install Quiq
For more information on module installation, please visit the detailed CPAN module installation guide.