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: dist/ng-material-multilevel-menu/README.md
+21-13Lines changed: 21 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ In your HTML: Use the ```<ng-material-multilevel-menu>``` wherever you like in y
70
70
[configuration]='config'
71
71
[items]='appitems'
72
72
(selectedItem)="selectedItem($event)"
73
+
[expandCollapseStatus]="expandCollapseStatus"
73
74
(selectedLabel)="selectedLabel($event)">
74
75
</ng-material-multilevel-menu>
75
76
```
@@ -161,19 +162,21 @@ appitems = [
161
162
```
162
163
163
164
## API
164
-
Using ```configuration```, You can customise the appearance of the list.
165
-
*```paddingAtStart: boolean``` => *[optional]* If you don't want padding at the start of the list item, then you can give ```false```. The default value will be ```true```.
166
-
*```interfaceWithRoute: boolean``` => *[required]* only if you want to use Angular Routing with this menu.
167
-
*```highlightOnSelect: boolean``` => *[optional]* If you want to highlight the clicked item in the list, then you can do that by making it ```true```. The default value will be ```false```.
168
-
*```collapseOnSelect: boolean;``` => *[optional]* You have the option to collapse another parent when clicked on the current parent. The default value will be ```false```.
169
-
*```rtlLayout: boolean;``` => *[optional]* whether display is Right To Left. The default value will be ```false```.
170
-
*```classname: string;``` => *[optional]* You can give your own custom class name in order to modify the list appearance.
171
-
*```listBackgroundColor: string;``` => *[optional]* You can apply custom color to the background of the list.
172
-
*```fontColor: string;``` => *[optional]* Changes the color of Text and icons inside the list.
173
-
*```backgroundColor: string;``` => *[optional]* This will change the background color list container.
174
-
*```selectedListFontColor: string;``` => *[optional]* This will change the font color of selected list item.
175
-
176
-
Below is example how you can apply diffent background and Font colors,
165
+
- Using ```configuration```, You can customise the appearance of the list.
166
+
*```paddingAtStart: boolean``` => *[optional]* If you don't want padding at the start of the list item, then you can give ```false```. The default value will be ```true```.
167
+
*```interfaceWithRoute: boolean``` => *[required]* only if you want to use Angular Routing with this menu.
168
+
*```highlightOnSelect: boolean``` => *[optional]* If you want to highlight the clicked item in the list, then you can do that by making it ```true```. The default value will be ```false```.
169
+
*```collapseOnSelect: boolean;``` => *[optional]* You have the option to collapse another parent when clicked on the current parent. The default value will be ```false```.
170
+
*```rtlLayout: boolean;``` => *[optional]* whether display is Right To Left. The default value will be ```false```.
171
+
*```classname: string;``` => *[optional]* You can give your own custom class name in order to modify the list appearance.
172
+
*```listBackgroundColor: string;``` => *[optional]* You can apply custom color to the background of the list.
173
+
*```fontColor: string;``` => *[optional]* Changes the color of Text and icons inside the list.
174
+
*```backgroundColor: string;``` => *[optional]* This will change the background color list container.
175
+
*```selectedListFontColor: string;``` => *[optional]* This will change the font color of selected list item.
176
+
177
+
- Using ```expandCollapseStatus```, You can expand all the menu and Collapse all the menus. Below is example how you can do that,
178
+
179
+
Below is example how you can apply different background and Font colors,
177
180
```typescript
178
181
config= {
179
182
paddingAtStart: true,
@@ -187,8 +190,13 @@ config = {
187
190
collapseOnSelect: true,
188
191
rtlLayout: false
189
192
};
193
+
194
+
expandCollapseStatus='expand'; // expand|collapse
195
+
190
196
```
191
197
198
+
199
+
192
200
## Default classes
193
201
*```selected-amml-item```: This class will be applied to currently selected link and it's father links.
194
202
*```active-amml-item```: This class will be applied to currently selected link.
0 commit comments