Skip to content

Commit b23509d

Browse files
committed
New Build
1 parent 712c875 commit b23509d

23 files changed

+245
-51
lines changed

dist/ng-material-multilevel-menu/README.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ In your HTML: Use the ```<ng-material-multilevel-menu>``` wherever you like in y
7070
[configuration]='config'
7171
[items]='appitems'
7272
(selectedItem)="selectedItem($event)"
73+
[expandCollapseStatus]="expandCollapseStatus"
7374
(selectedLabel)="selectedLabel($event)">
7475
</ng-material-multilevel-menu>
7576
```
@@ -161,19 +162,21 @@ appitems = [
161162
```
162163

163164
## 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,
177180
```typescript
178181
config = {
179182
paddingAtStart: true,
@@ -187,8 +190,13 @@ config = {
187190
collapseOnSelect: true,
188191
rtlLayout: false
189192
};
193+
194+
expandCollapseStatus = 'expand'; // expand|collapse
195+
190196
```
191197

198+
199+
192200
## Default classes
193201
* ```selected-amml-item```: This class will be applied to currently selected link and it's father links.
194202
* ```active-amml-item```: This class will be applied to currently selected link.

dist/ng-material-multilevel-menu/bundles/ng-material-multilevel-menu.umd.js

Lines changed: 37 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-material-multilevel-menu/bundles/ng-material-multilevel-menu.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-material-multilevel-menu/bundles/ng-material-multilevel-menu.umd.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-material-multilevel-menu/bundles/ng-material-multilevel-menu.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ng-material-multilevel-menu/esm2015/lib/app.model.js

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)