You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/theme/layout-default/index.en-US.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ export class LayoutBasicComponent {
88
88
}
89
89
```
90
90
91
-
In addition, in layout operations, you can subscribe to layout changes through `SettingsService.notify` (for example: sidebar show and hide, etc.). Note that all layout-related changes will pass through this interface, so you need to do `filter` operation.
91
+
The layout can be dynamically managed at runtime through the `LayoutDefaultService` service. In addition, in layout operations, you can subscribe to layout changes through `SettingsService.notify` (for example: sidebar show and hide, etc.). Note that all layout-related changes will pass through this interface, so you need to do `filter` operation.
92
92
93
93
## API
94
94
@@ -98,6 +98,7 @@ In addition, in layout operations, you can subscribe to layout changes through `
98
98
|----------|-------------|------|---------|
99
99
|`[options]`| Options of the layout |`LayoutDefaultOptions`|`-`|
100
100
|`[asideUser]`| Side user of the layout |`TemplateRef<void>`|`-`|
101
+
|`[asideBottom]`| Bottom information of the layout |`TemplateRef<void>`|`-`|
101
102
|`[nav]`| Nav |`TemplateRef<void>`|`-`|
102
103
|`[content]`| Content |`TemplateRef<void>`|`-`|
103
104
|`[customError]`| Custom exception routing error message, can't show when is `null`|`string, null`|`Could not load ${evt.url} route`|
@@ -112,6 +113,9 @@ In addition, in layout operations, you can subscribe to layout changes through `
112
113
|`[logoFixWidth]`| Specify a fixed logo width |`number`| - |
113
114
|`[logoLink]`| Specify the logo routing address |`string`|`/`|
114
115
|`[hideAside]`| Hide the sidebar without showing the collapsed icon button |`boolean`|`false`|
116
+
|`[hideHeader]`| Hide top bar |`boolean`|`false`|
117
+
|`[showHeaderCollapse]`| Whether to display the menu collapse button on the top bar |`boolean`|`true`|
118
+
|`[showSiderCollapse]`| Whether to show the menu collapse button at the bottom of the sidebar |`boolean`|`false`|
115
119
116
120
### layout-default-nav
117
121
@@ -239,8 +243,4 @@ The menu will be re-rendered via calling `MenuService.setItem(key, newValue)`, p
239
243
240
244
**How to control menu expand**
241
245
242
-
Use `SettingsService.setLayout` to operate on `collapsed`, for example:
243
-
244
-
```ts
245
-
SettingsService.setLayout('collapsed', status);
246
-
````
246
+
Use `LayoutDefaultService.toggleCollapsed()` for manual control at runtime.
0 commit comments