From a37e608e60ca7eedb7cb24bc2c73125ade678637 Mon Sep 17 00:00:00 2001 From: Simon Karlen Date: Thu, 5 Aug 2021 10:46:05 +0200 Subject: [PATCH] updated docs --- docs/guide-de/migrating-yii2-bootstrap.md | 4 ++++ docs/guide-de/usage-widgets.md | 1 + docs/guide-es/usage-widgets.md | 1 + docs/guide-ja/usage-widgets.md | 1 + docs/guide-pt-BR/usage-widgets.md | 1 + docs/guide-ru/usage-widgets.md | 1 + docs/guide-uk/usage-widgets.md | 1 + docs/guide-zh-CN/usage-widgets.md | 1 + docs/guide/migrating-yii2-bootstrap.md | 4 ++++ docs/guide/usage-widgets.md | 1 + 10 files changed, 16 insertions(+) diff --git a/docs/guide-de/migrating-yii2-bootstrap.md b/docs/guide-de/migrating-yii2-bootstrap.md index 7e67c78..3a7eaee 100644 --- a/docs/guide-de/migrating-yii2-bootstrap.md +++ b/docs/guide-de/migrating-yii2-bootstrap.md @@ -36,6 +36,10 @@ Es gibt eine neue Konstante [[yii\bootstrap5\ActiveForm::LAYOUT_FLOATING]]. Sie ### 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 Eigentschaft `$collapseOptions` des Widgets [[yii\bootstrap5\NavBar|Navbar]] auf `false` +und die Eigenschaft `$offcanvasOptions` auf ein array setzt (auch wenn leer). + ### Tabs ### ToggleButtonGroup diff --git a/docs/guide-de/usage-widgets.md b/docs/guide-de/usage-widgets.md index 65e5aab..4ea23f9 100644 --- a/docs/guide-de/usage-widgets.md +++ b/docs/guide-de/usage-widgets.md @@ -18,6 +18,7 @@ von Framework-Funktionen. Alle Widgets gehören zum `\yii\bootstrap5` Namespace: - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] - [[yii\bootstrap5\ToggleButtonGroup|ToggleButtonGroup]] diff --git a/docs/guide-es/usage-widgets.md b/docs/guide-es/usage-widgets.md index bd9f124..5e813d9 100644 --- a/docs/guide-es/usage-widgets.md +++ b/docs/guide-es/usage-widgets.md @@ -20,6 +20,7 @@ al namespace `\yii\bootstrap5`: - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] diff --git a/docs/guide-ja/usage-widgets.md b/docs/guide-ja/usage-widgets.md index b5d97a9..d595325 100644 --- a/docs/guide-ja/usage-widgets.md +++ b/docs/guide-ja/usage-widgets.md @@ -19,6 +19,7 @@ Yii ウィジェット - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] diff --git a/docs/guide-pt-BR/usage-widgets.md b/docs/guide-pt-BR/usage-widgets.md index 123e992..3f67847 100644 --- a/docs/guide-pt-BR/usage-widgets.md +++ b/docs/guide-pt-BR/usage-widgets.md @@ -19,6 +19,7 @@ características estruturais do framework. Todos widgets pertencem ao namespace - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] diff --git a/docs/guide-ru/usage-widgets.md b/docs/guide-ru/usage-widgets.md index bcaf0d7..eb21a56 100644 --- a/docs/guide-ru/usage-widgets.md +++ b/docs/guide-ru/usage-widgets.md @@ -18,6 +18,7 @@ - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] diff --git a/docs/guide-uk/usage-widgets.md b/docs/guide-uk/usage-widgets.md index 2c72948..84b7960 100644 --- a/docs/guide-uk/usage-widgets.md +++ b/docs/guide-uk/usage-widgets.md @@ -19,6 +19,7 @@ - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] diff --git a/docs/guide-zh-CN/usage-widgets.md b/docs/guide-zh-CN/usage-widgets.md index 06a7c97..58e598a 100644 --- a/docs/guide-zh-CN/usage-widgets.md +++ b/docs/guide-zh-CN/usage-widgets.md @@ -18,6 +18,7 @@ Yii 小部件 - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]] diff --git a/docs/guide/migrating-yii2-bootstrap.md b/docs/guide/migrating-yii2-bootstrap.md index 355504f..f593f1f 100644 --- a/docs/guide/migrating-yii2-bootstrap.md +++ b/docs/guide/migrating-yii2-bootstrap.md @@ -36,6 +36,10 @@ There is a new constant [[yii\bootstrap5\ActiveForm::LAYOUT_FLOATING]]. It's a ### NavBar +There is now the possibility to create an [offcanvas navbar](https://getbootstrap.com/docs/5.1/components/navbar/#offcanvas). +You can achieve this by setting the `$collapseOptions` to `false` in [[yii\bootstrap5\NavBar|Navbar]] widget and the +`$offcanvasOptions` to at least an empty array. + ### Tabs ### ToggleButtonGroup diff --git a/docs/guide/usage-widgets.md b/docs/guide/usage-widgets.md index d4b681e..026554d 100644 --- a/docs/guide/usage-widgets.md +++ b/docs/guide/usage-widgets.md @@ -19,6 +19,7 @@ framework features. All widgets belong to `\yii\bootstrap5` namespace: - [[yii\bootstrap5\Modal|Modal]] - [[yii\bootstrap5\Nav|Nav]] - [[yii\bootstrap5\NavBar|NavBar]] +- [[yii\bootstrap5\Offcanvas|Offcanvas]] - [[yii\bootstrap5\Popover|Popover]] - [[yii\bootstrap5\Progress|Progress]] - [[yii\bootstrap5\Tabs|Tabs]]