Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f87c84fa

Von Sven Schöling vor etwa 3 Jahren hinzugefügt

  • ID f87c84fa4e40dcdd3da52e216eb5e2e1a83d7563
  • Vorgänger 0849d5c9
  • Nachfolger c0baa759

MaterialComponents: checkbox_tag

Unterschiede anzeigen:

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