0
在我的頁面我有播放,暫停,恢復&停止圖標。當我點擊播放圖標暫停&停止圖標顯示類似我想顯示簡歷&停止圖標,當我點擊暫停圖標。這是我的代碼,請任何人幫助我。謝謝在角度播放,暫停,恢復和隱藏
HTML代碼。
<div id="checkDiv">
<span mdTooltipPosition="below" mdTooltip="CheckIn">
<md-icon svgIcon="play" style="color: #efefef;cursor: pointer;height: 15px;width: 15px;" (click)='openPause()' [hidden]='playDiv'></md-icon>
</span>
<span mdTooltipPosition="below" mdTooltip="pause">
<md-icon svgIcon="pause" style="color: #efefef;cursor: pointer;height: 15px;width: 15px;" *ngIf="playDiv" (click)='openPlay()' > </md-icon>
</span>
<span mdTooltipPosition="below" mdTooltip="resume">
<md-icon svgIcon="play" style="color: #efefef;cursor: pointer;height: 15px;width: 15px;" *ngIf="playDiv" [hidden]='playDiv' (click)='openPause()' ></md-icon>
</span>
<span mdTooltipPosition="below" mdTooltip="CheckOut">
<md-icon svgIcon="stop" style="color: #efefef;cursor: pointer;height: 15px;width: 15px;" *ngIf="playDiv" (click)='openPlay()'></md-icon>
</span>
打字稿
public playDiv:boolean = false;
openPause() {
this.playDiv = true;
}
openPlay() {
this.playDiv = false;
}