Skip to content

Commit 6341fcd

Browse files
committed
feat(lib): added toggle method
1 parent f79cf9f commit 6341fcd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,13 @@ Other modules in your application like for lazy loading import ` MatSelectCountr
129129
| disabled | `Input()` | `boolean` | `false` | Whether the component is disabled
130130
| onFabMenuItemSelected | `Output()` | `EventEmitter<string | number>` | - | emits the selected button by id
131131

132+
### Methods
133+
134+
```typescript
135+
@ViewChild('matFabMenu', { static: false }) matFabMenu: MatFabMenu;
136+
```
137+
138+
`toggle()` will toggle the `isActive` property
132139

133140
Important interfaces or type
134141

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,8 @@ export class MatFabMenuComponent implements OnInit, OnChanges {
9292
break;
9393
}
9494
}
95+
96+
toggle() {
97+
this.isActive = !this.isActive;
98+
}
9599
}

0 commit comments

Comments
 (0)