Quiq::JQuery::Tabs - Erzeuge HTML einer jQuery UI Tabs Reiterleiste
Quiq::Hash
Die Klasse erzeugt den HTML-Code einer jQuery UI 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 Reiterleiste.
Definition der Reiter.
Tabs Widget API
Tabs Widget Beispiele
Perl:
$html = Quiq::JQuery::Tabs->html($h, id => 'tabs', tabs => [ { label => 'A', link => '#a', content => $h->tag('p', -text => 1, 'Text des Reiters A', ), },{ label => 'B', link => 'b', }, ], );
HTML:
<div id="tabs"> <ul> <li><a href="#a">A</a></li> <li><a href="b">B</a></li> </ul> <div id="a"> <p> Text des Reiters A </p> </div> </div>
$obj = $class->new(@keyVal);
Instantiiere ein Reiterleisten-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.148
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.