Revision f87c84fa
Von Sven Schöling vor fast 4 Jahren hinzugefügt
SL/Presenter/MaterialComponents.pm | ||
---|---|---|
285 | 285 |
); |
286 | 286 |
} |
287 | 287 |
|
288 |
sub checkbox_tag { |
|
289 |
my ($name, %attributes) = @_; |
|
290 |
|
|
291 |
_set_id_attribute(\%attributes, $name); |
|
292 |
|
|
293 |
my $label = $attributes{label} |
|
294 |
? html_tag('span', delete $attributes{label}) |
|
295 |
: ''; |
|
296 |
|
|
297 |
my $checkbox_html = SL::Presenter::Tag::checkbox_tag($name, %attributes); |
|
298 |
|
|
299 |
html_tag('label', |
|
300 |
$checkbox_html . $label, |
|
301 |
); |
|
302 |
} |
|
303 |
|
|
288 | 304 |
|
289 | 305 |
1; |
290 | 306 |
__END__ |
Auch abrufbar als: Unified diff
MaterialComponents: checkbox_tag