first commit
This commit is contained in:
48
vendor/yiisoft/yii2-bootstrap5/docs/guide-de/migrating-yii2-bootstrap.md
vendored
Normal file
48
vendor/yiisoft/yii2-bootstrap5/docs/guide-de/migrating-yii2-bootstrap.md
vendored
Normal file
@ -0,0 +1,48 @@
|
||||
Migration von yii2-bootstrap4
|
||||
=============================
|
||||
|
||||
yii2-bootstrap4 ist eine komplette Überarbeitung des Projekts (siehe den Bootstrap 4 von Bootstrap 3 Migrationsguide).
|
||||
Die größten Änderungen finden Sie hier zusammengefasst:
|
||||
|
||||
## Allgemein
|
||||
|
||||
* Der Namespace ist nun `yii\bootstrap5` anstatt `yii\bootstrap4`
|
||||
* Die PHP Kompatibilität **ist beschränkt auf** `>=7.0`
|
||||
* Der "Schließen"-Button von Widgets wie [[yii\bootstrap5\Alert|Alert]] oder [[yii\bootstrap5|Modal|Modal]] wird neu
|
||||
via CSS dargestellt und hat keinen Inhalt mehr. Es ist daher beim Überschreiben sicherzustellen, dass die `btn-close`
|
||||
Klasse entfernt wird und die benötigten Stile manuell gesetzt werden.
|
||||
|
||||
## Widgets / Klassen
|
||||
|
||||
### BaseHtml
|
||||
|
||||
### ActiveField
|
||||
|
||||
### ActiveForm
|
||||
|
||||
Es gibt eine neue Konstante [[yii\bootstrap5\ActiveForm::LAYOUT_FLOATING]]. Sie repräsentiert ein
|
||||
[neues Formular-Layout](https://getbootstrap.com/docs/5.1/forms/floating-labels/) in Bootstrap 5.
|
||||
|
||||
### Breadcrumbs
|
||||
|
||||
### ButtonDropdown
|
||||
|
||||
### ButtonToolbar
|
||||
|
||||
### Carousel
|
||||
|
||||
### LinkPager
|
||||
|
||||
### Modal
|
||||
|
||||
### Nav
|
||||
|
||||
### NavBar
|
||||
|
||||
Es gibt nun die Möglichkeit der Erstellung einer [Offcanvas Navbar](https://getbootstrap.com/docs/5.1/components/navbar/#offcanvas).
|
||||
Dies ist zu erreichen, indem man die Eigenschaft `$collapseOptions` des Widgets [[yii\bootstrap5\NavBar|Navbar]] auf `false`
|
||||
und die Eigenschaft `$offcanvasOptions` auf ein array setzt (auch wenn leer).
|
||||
|
||||
### Tabs
|
||||
|
||||
### ToggleButtonGroup
|
||||
Reference in New Issue
Block a user