플로팅 버튼 내용 1개 일경우 바로 실행되도록 수정.
This commit is contained in:
parent
52bd202c6a
commit
17a9208c63
@ -47,7 +47,11 @@ export class FloatActionButtonComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onToggleFab() {
|
onToggleFab() {
|
||||||
this.buttons.length ? this.hideItems() : this.showItems();
|
if (this.fabButtons.length > 1) {
|
||||||
|
this.buttons.length ? this.hideItems() : this.showItems();
|
||||||
|
} else if (this.fabButtons.length === 1) {
|
||||||
|
this.buttonClick.emit({ btn: this.fabButtons[0] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onClickButton(btn: FloatActionButton) {
|
onClickButton(btn: FloatActionButton) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user