Quiq::JQuery::Accordion - Erzeuge HTML einer jQuery UI Accodion Reiterleiste
Quiq::Hash
Die Klasse erzeugt den HTML-Code einer jQuery UI Accordion Reiterleiste. Dem Konstruktor wird die Reiterkonfiguration mit dem Attribut tabs übergeben. Die Methode html() generiert den HTML-Code. Siehe Abschnitt EXAMPLE.
tabs
DOM-Id der Accordion Reiterleiste.
CSS-Klasse der Accordion Reiterleiste.
Definition der Accordion-Reiter.
Accordion Widget API
Accordion Widget Beispiele
Perl:
$html = Quiq::JQuery::Accordion->html($h, id => 'accordion', tabs => [{ label => 'A', link => 'a', },{ label => 'B', content => $h->tag('p', -text => 1, 'Text des Reiters B', ), }], );
HTML:
<div id="accordion"> <h3><a href="a">A</a></h3> <div></div> <h3>B</h3> <div> <p> Text des Reiters B </p> </div> </div>
$obj = $class->new(@keyVal);
Instantiiere ein Accordion-Objekt und liefere eine Referenz auf dieses Objekt zurück.
$html = $obj->html($h); $html = $class->html($h,@keyVal);
Generiere den HTML-Code eines Reiterleisten-Objekts und liefere diesen zurück. Als Klassenmethode gerufen, wird das Objekt intern mit den Attributen @keyVal instantiiert.
1.152
Frank Seitz, http://fseitz.de/
Copyright (C) 2019 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.