| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung |
| plugins:bootstrap_wrapper [14.06.2024 11:16] – Nikolaus Müller-Büchele | plugins:bootstrap_wrapper [10.08.2024 08:57] (aktuell) – Nikolaus Müller-Büchele |
|---|
| </callout> | </callout> |
| * **Editor:** Im Editorfenster können über den {{:bootstrap.png?nolink&20|}}-Button Bootstrap-Element in die aktuelle Seite eingefügt werden, dabei wird ein Starttag ''%%<tag>%%'' und ein Endtag ''%%</tag>%%'' generiert. \\ \\ | * **Editor:** Im Editorfenster können über den {{:bootstrap.png?nolink&20|}}-Button Bootstrap-Element in die aktuelle Seite eingefügt werden, dabei wird ein Starttag ''%%<tag>%%'' und ein Endtag ''%%</tag>%%'' generiert. \\ \\ |
| * Elemente mit unterschiedlichen **Farben** werden über das Attribut ''type'' entsprechend eingefärbt: \\ ''type ='' <label type="primary"> "primary" </label> <label type="success"> "success" </label> <label type="info"> "info" </label> <label type="warning"> "warning" </label> <label type="danger"> "danger" </label> \\ \\ | * Elemente mit unterschiedlichen **Farben** werden über das Attribut ''type'' entsprechend eingefärbt: \\ ''type ='' <label type="primary"> "primary" </label> <label type="success"> "success" </label> <label type="info"> "info" </label> <label type="warning"> "warning" </label> <label type="danger"> "danger" </label> <label> ohne "type" </label>\\ \\ |
| * Elemente mit **Icons** aus den Bibliotheken [[https://fontawesome.com/search?o=r&m=free|Font Awesom]] (fa) oder [[https://pictogrammers.com/library/mdi/|Material Design]] (mdi): Icons lassen sich je nach Element als Mediendatei {{mdi>bike}} ''%%{{fa>bicycle}}%%'' oder als Attribut <button icon="fa fa-bicycle">''icon="mdi mdi-bike"''</button> einfügen. Im Editor lassen sich die verfügbaren Icons über den {{:wiki:dokuwiki-128.png?nolink&20|}} -Button des [[plugins:icons|icons-Plugin]] anzeige. <text type="muted">Die "Glyphicons" werden in Bootstrap zukünftig nicht mehr angeboten und sollten nicht verwendet werden</text>. | * Elemente mit **Icons** aus den Bibliotheken [[https://fontawesome.com/search?o=r&m=free|Font Awesom]] (fa) oder [[https://pictogrammers.com/library/mdi/|Material Design]] (mdi): Icons lassen sich je nach Element als Mediendatei {{mdi>bike}} ''%%{{fa>bicycle}}%%'' oder als Attribut <button icon="fa fa-bicycle">''icon="mdi mdi-bike"''</button> einfügen. Im Editor lassen sich die verfügbaren Icons über den {{:wiki:dokuwiki-128.png?nolink&20|}} -Button des [[plugins:icons|icons-Plugin]] anzeige. <text type="muted">Die "Glyphicons" werden in Bootstrap zukünftig nicht mehr angeboten und sollten nicht verwendet werden</text>. |
| ==== bootswrapper Elemente ==== | ==== bootswrapper Elemente ==== |
| <alert type="success" dismiss="true" icon="fa fa-warning">**Warnung**</alert> | <alert type="success" dismiss="true" icon="fa fa-warning">**Warnung**</alert> |
| </col> | </col> |
| <col md="6" sm="12"> | <col md="6" sm="12"><code> |
| <alert type="success" dismiss="true" icon="fa fa-warning">**Warnung**</alert> | <alert type="success" dismiss="true" icon="fa fa-warning"> |
| | **Warnung** |
| | </alert></code> |
| </col> | </col> |
| </grid> | </grid> |
| <col md="6" sm="12"><callout type="info" icon="True"> Info </callout> | <col md="6" sm="12"><callout type="info" icon="True"> Info </callout> |
| </col> | </col> |
| <col md="6" sm="12"> | <col md="6" sm="12"> \\ |
| <callout type="info" icon="True"> Info </callout> | <callout type="info" icon="True"> Info </callout> |
| </col> | </col> |
| * Exercitatio artem parat | * Exercitatio artem parat |
| * Sol lucet omnibus | * Sol lucet omnibus |
| </code></list-group> | </list-group> |
| | </code> |
| </col> | </col> |
| </grid> | </grid> |
| <grid> | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| | <panel type="primary" title="Panel Titel"> Text in einem Panel</panel> |
| | </col> |
| | <col md="6" sm="12"><code> |
| <panel type="primary" title="Panel Titel"> | <panel type="primary" title="Panel Titel"> |
| </panel> | Text in einem Panel |
| </col> | </panel></code> |
| <col md="6" sm="12"> | |
| <panel type="primary" title="Panel Titel"> | |
| </panel> | |
| </col> | </col> |
| </grid> | </grid> |
| **[[plugins:bootswrap:well | <well> ]]** | **[[plugins:bootswrap:well | <well> ]]** |
| </grid> | <grid> |
| <col md="6" sm="12"><well> Text in einem Rahmen </well> | <col md="6" sm="12"><well> Text in einem Rahmen </well> |
| </col> | </col> |
| ==== Grafiken ==== | ==== Grafiken ==== |
| </alert> | </alert> |
| | **[[plugins:bootswrap:carousel | <carousel> ]]** |
| | <grid> |
| | <col md="6" sm="12"><carousel><slide>{{:logoph.png?0x100|}}</slide><slide>{{:wiki:dokuwiki-128.png?0x100|}}</slide><slide>{{:bootstrap.png?0x100|}}</slide></carousel> |
| | </col> |
| | <col md="6" sm="12"><code> |
| | <carousel> |
| | <slide>{{:logoph.png?0x100|}}</slide> |
| | <slide>{{:wiki:dokuwiki-128.png?0x100|}}</slide> |
| | <slide>{{:bootstrap.png?0x100|}}</slide> |
| | </carousel> |
| | </code></col> |
| | </grid> |
| | **[[plugins:bootswrap:image | <image> ]]** |
| <grid> | <grid> |
| <col md="6" sm="12"><panel>**[[plugins:bootswrap:carousel | <carousel> ]]** \\ <carousel><slide>{{:logoph.png?0x100|}}</slide><slide>{{:wiki:dokuwiki-128.png?0x100|}}</slide><slide>{{:bootstrap.png?0x100|}}</slide></carousel> | |
| </panel></col> | |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:image | <image> ]]** \\ <image shape="circle">{{:logophinvers.png?50 |circle}}</image><image shape="rounded">{{:logophinvers.png?50 |rouded}}</image><image shape="thumbnail">{{:logophinvers.png?50 |thumbnail}}</image> | <image shape="circle">{{:logophinvers.png?50 |circle}}</image><image shape="rounded">{{:logophinvers.png?50 |rouded}}</image><image shape="thumbnail">{{:logophinvers.png?50 |thumbnail}}</image> |
| </panel> | |
| </col> | </col> |
| <col md="6" sm="12"><panel>**[[plugins:bootswrap:progress-bar | <progress-bar> ]]** \\ \\ <progress><bar value="45" type="danger" striped="true">45%</bar> | <col md="6" sm="12"> |
| | <code><image shape="circle"> |
| | {{:logophinvers.png?50 |circle}} |
| | </image> |
| | <image shape="rounded"> |
| | {{:logophinvers.png?50 |rouded}} |
| | </image> |
| | <image shape="thumbnail"> |
| | {{:logophinvers.png?50 |thumbnail}} |
| | </image> |
| | </code> |
| | </col> |
| | </grid> |
| | **[[plugins:bootswrap:progress-bar | <progress-bar> ]]** |
| | <grid> |
| | <col md="6" sm="12"><progress><bar value="45" type="danger" striped="true">45%</bar> |
| </progress> | </progress> |
| </panel></col> | </col> |
| | <col md="6" sm="12"><code><progress> |
| | <bar value="45" type="danger" striped="true">45%</bar> |
| | </progress> |
| | </code></col> |
| | </grid> |
| | **[[plugins:bootswrap:thumbnail | <thumbnail> ]]** |
| | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:thumbnail | <thumbnail> ]]** \\ <thumbnail>{{ :logophinvers.png }}<caption>Bild mit Rahmen und Bildtext</caption></thumbnail> | <thumbnail>{{ :logophinvers.png }}<caption>Bild mit Rahmen und Bildtext</caption></thumbnail> |
| </panel> | </col> |
| </col></grid> | <col md="6" sm="12"> |
| | <code><thumbnail> |
| | {{ :logophinvers.png }} |
| | <caption>Bild mit Rahmen und Bildtext</caption> |
| | </thumbnail> |
| | </code> |
| | </col> |
| | </grid> |
| <alert> | <alert> |
| ==== Interaktive Elemente ==== | ==== Interaktive Elemente ==== |
| </alert> | </alert> |
| //Reagieren auf Klick, Mouseover oder Scrollen// | //Reagieren auf Klick, Mouseover oder Scrollen// |
| | \\ \\ |
| | |
| | **[[plugins:bootswrap:accordion | <accordion> ]]** |
| <grid> | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:accordion | <accordion> ]]** \\ <accordion> | <accordion> |
| <panel title="Titel 1 (klick)"> | <panel title="Titel 1 (klick)"> |
| Text Abschnitt 1 | Text Abschnitt 1 |
| </panel> | </panel> |
| </accordion> | </accordion> |
| | </col> |
| | <col md="6" sm="12"><code> |
| | <accordion> |
| | <panel title="Titel 1 (klick)"> |
| | Text Abschnitt 1 |
| </panel> | </panel> |
| | <panel title="Titel 2 (klick)"> |
| | Text Abschnitt 2 |
| | </panel> |
| | </accordion> |
| | </code> |
| </col> | </col> |
| | </grid> |
| | **[[plugins:bootswrap:affix | <affix> ]]** |
| | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:affix | <affix> ]]** \\ \\ Fixiert je nach Scrollposition Elemente an einer festen Postion: \\ scrollen, s. oben rechts. | Fixiert je nach Scrollposition Elemente an einer festen Postion: \\ scrollen, s. oben rechts. |
| <affix position="fixed" offset-top = "3000" position-top="100" position-right="50" >8-)</affix> | <affix position="fixed" offset-top = "3100" position-top="100" position-right="50" >8-)</affix> |
| </panel> | |
| </col> | </col> |
| | <col md="6" sm="12"><code> |
| | Fixiert je nach Scrollposition Elemente an einer festen Postion: \\ scrollen, s. oben rechts. |
| | <affix position="fixed" offset-top = "3100" position-top="100" position-right="50" > |
| | 8-) |
| | </affix> |
| | </code> |
| | </col> |
| | </grid> |
| | **[[plugins:bootswrap:button | <button> ]]** |
| | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:button | <button> ]]** \\ \\ <button type="success" size="lg" icon="fa fa-chevron-up">[[bootstrap_wrapper| nach oben]]</button> | <button type="success" size="lg" icon="fa fa-chevron-up">[[bootstrap_wrapper| nach oben]]</button> |
| </panel> | |
| </col> | </col> |
| | <col md="6" sm="12"><code> |
| | <button type="success" size="lg" icon="fa fa-chevron-up"> |
| | [[bootstrap_wrapper| nach oben]] |
| | </button></code> |
| | </col> |
| | </grid> |
| | |
| | **[[plugins:bootswrap:collapse | <collapse> ]]** |
| | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:collapse | <collapse> ]]** \\ \\ | |
| <button collapse="beispiel">Klick!</button> | <button collapse="beispiel">Klick!</button> |
| <collapse id="beispiel" collapsed="true">verborgener Abschnitt</collapse> | <collapse id="beispiel" collapsed="true">verborgener Abschnitt</collapse> |
| </panel> | </col> |
| | <col md="6" sm="12"><code> |
| | <button collapse="beispiel">Klick!</button> |
| | <collapse id="beispiel" collapsed="true"> |
| | verborgener Abschnitt |
| | </collapse> |
| | </code> |
| </col> | </col> |
| </grid> | </grid> |
| | **[[plugins:bootswrap:modal | <modal> ]]** |
| <grid> | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:modal | <modal> ]]** \\ \\ | |
| <btn modal="modal-demo">Klick!</btn> | <btn modal="modal-demo">Klick!</btn> |
| <modal id="modal-demo" title="Modal"> | <modal id="modal-demo" title="Modal"> |
| Text in einem modalen Fenster | Text in einem modalen Fenster |
| </modal> | </modal> |
| </panel> | |
| </col> | </col> |
| | <col md="6" sm="12"><code> |
| | <btn modal="modal-demo">Klick!</btn> |
| | <modal id="modal-demo" title="Modal"> |
| | Text in einem modalen Fenster |
| | </modal> |
| | </code></col> |
| | </grid> |
| | **[[plugins:bootswrap:nav | <nav> ]]** |
| | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:nav | <nav> ]]** | <panel> |
| <nav type="pills" stacked="true"> | <nav type="pills" stacked="true"> |
| * [[:start|{{fa>home}}]] | * [[:start|{{fa>home}}]] |
| </col> | </col> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:popover | <popover> ]]** \\ \\ | <code> |
| | <nav type="pills" stacked="true"> |
| | * [[:start|{{fa>home}}]] |
| | * Sonderseiten |
| | * [[:header|header]] |
| | * [[:sidebar|sidebar]] |
| | * [[rightsidebar|rightsidebar]] |
| | * [[:footer|footer]] |
| | </nav> |
| | </code> |
| | </col> |
| | </grid> |
| | **[[plugins:bootswrap:popover | <popover> ]]** |
| | <grid> |
| | <col md="6" sm="12"> |
| <popover placement="right" title="Popover" content="ein kleines Textfenster!" animation="true" delay="0" delay-show="0" delay-hide="0"><button>Klick!</button></popover> | <popover placement="right" title="Popover" content="ein kleines Textfenster!" animation="true" delay="0" delay-show="0" delay-hide="0"><button>Klick!</button></popover> |
| </panel> | |
| </col> | </col> |
| | <col md="6" sm="12"><code> |
| | <popover placement="right" title="Popover" content="ein kleines Textfenster!" animation="true" delay="0" delay-show="0" delay-hide="0"> |
| | <button>Klick!</button> |
| | </popover> |
| | </code></col> |
| | </grid> |
| | **[[plugins:bootswrap:tooltip | <tooltip> ]]** |
| | <grid> |
| <col md="6" sm="12"> | <col md="6" sm="12"> |
| <panel>**[[plugins:bootswrap:tooltip | <tooltip> ]]** \\ \\ Text mit <tooltip title="das ist ein Tooltip" placement="bottom">Tooltip</tooltip> (mouseover) | Text mit <tooltip title="das ist ein Tooltip" placement="bottom">Tooltip</tooltip> (mouseover) |
| </panel> | </col> |
| | <col md="6" sm="12"><code> |
| | Text mit |
| | <tooltip title="das ist ein Tooltip" placement="bottom"> |
| | Tooltip |
| | </tooltip> (mouseover) |
| | </code> |
| </col> | </col> |
| </grid> | </grid> |
| | large (larger desktops) | ab 1200px | lg | | | large (larger desktops) | ab 1200px | lg | |
| </col><col sm="12" md="6"> | </col><col sm="12" md="6"> |
| **Beispiel: %%<col sm="6" lg="4">%%** | **Beispiel: %%<col sm="6" lg="4">%%** ergibt folgende Feld-Einteilung: |
| ^ Kürzel ^ Feldbreite in Rasterspalten || | ^ Kürzel ^ Feldbreite in Rasterspalten || |
| | xs | 12 | Standardbreite -> 1 Spalte pro Reihe | | | xs | 12 | Standardbreite -> 1 Feld pro Reihe | |
| | sm | 6 | wie angegeben -> 2 Spalten pro Reihe | | | sm | 6 | wie angegeben -> 2 Felder pro Reihe | |
| | md | 6 | geerbt von "sm" | | | md | 6 | geerbt von "sm" | |
| | lg | 4 | wie angegeben -> 3 Spalten pro Reihe | | | lg | 4 | wie angegeben -> 3 Felder pro Reihe | |
| </col></grid> | </col></grid> |
| |
| <code> | <code> |
| <grid> | <grid> |
| <col sm="12" md="6" lg="8"> | <col sm="12" md="6" lg="8"> |
| sm=12 md=6 lg=8 | sm=12 md=6 lg=8 |
| </col> | </col> |
| <col xs=12 sm=6 md=4> | <col xs=12 sm=6 md=4> |
| xs="12" sm="6" md="4" | xs="12" sm="6" md="4" |
| </col> | </col> |
| </grid> | </grid> |
| </code> | </code> |
| |
| |