Skip to content

Commit 9650185

Browse files
committed
feat(lib): implemented mat-mini-fab-menu component #6
1 parent abfbbaa commit 9650185

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Other modules in your application like for lazy loading import ` MatSelectCountr
115115
## API
116116

117117
### `<mat-fab-menu>` used to display the main component - [see the demo examples](https://angular-material-extensions.github.io/fab-menu/examples)
118+
### `<mat-mini-fab-menu>` used to display a mini version of the fab menu - [see the demo examples](https://angular-material-extensions.github.io/fab-menu/examples)
118119

119120
| option | bind | type | default | description |
120121
|:-------------------|:--------:|:------:|:------------:|:-------------------------------------------------------------------------------------------------|
@@ -163,6 +164,13 @@ type MatFabMenuDirection = 'top' | 'bottom' | 'left' | 'right';
163164
<mat-fab-menu color="primary"
164165
[fabButtons]="fabButtonsRandom">
165166
</mat-fab-menu>
167+
168+
<!-- or if you prefer the mini version -->
169+
170+
<mat-mini-fab-menu color="primary"
171+
[fabButtons]="fabButtonsRandom">
172+
</mat-mini-fab-menu>
173+
166174
```
167175

168176
```typescript

projects/angular-material-extensions/fab-menu/src/lib/mat-fab-menu.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import {MatButtonModule} from '@angular/material/button';
88
import {MatMiniFabMenuComponent} from './mat-mini-fab-menu/mat-mini-fab-menu.component';
99

1010
@NgModule({
11-
declarations: [MatFabMenuComponent, MatMiniFabMenuComponent, MatMiniFabMenuComponent],
11+
declarations: [MatFabMenuComponent, MatMiniFabMenuComponent],
1212
imports: [
1313
CommonModule,
1414
MatButtonModule,
1515
MatIconModule,
1616
MatTooltipModule,
1717
FlexLayoutModule
1818
],
19-
exports: [MatFabMenuComponent]
19+
exports: [MatFabMenuComponent, MatMiniFabMenuComponent]
2020
})
2121
export class MatFabMenuModule {
2222
}

src/app/app.component.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,13 @@ <h2>Usage</h2>
485485
[isActive]="isActive.checked"
486486
[disabled]="disabled.checked">
487487
</mat-fab-menu>
488+
489+
<mat-mini-fab-menu [color]="color"
490+
[direction]="direction"
491+
[fabButtons]="exampleFabButtons"
492+
[isActive]="isActive.checked"
493+
[disabled]="disabled.checked">
494+
</mat-mini-fab-menu>
488495
</div>
489496
</mat-card-content>
490497
</mat-card>

src/assets/md/html.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<mat-fab-menu color="primary"
33
[fabButtons]="fabButtonsRandom">
44
</mat-fab-menu>
5+
6+
<!-- or if you prefer the mini version -->
7+
8+
<mat-mini-fab-menu color="primary"
9+
[fabButtons]="fabButtonsRandom">
10+
</mat-mini-fab-menu>
511
```
612

713
```typescript

0 commit comments

Comments
 (0)