我需要调用一个 Angular2 函数名称 编辑从编辑选项预约



这是动态轮播代码我需要调用一个 angular2 函数名称 editAppointment 来自代码中给出的 EDIT 选项,我已经尝试了所有我能尝试的选项,可以使用 JQuery

   str+=`<div class="item">
             <img src="`+this.eventData[0].events[i].images +`" style="display:none;" >
         <br/>
         <div class="row">
              <div class="col-sm-3" (click)="editAppointment()">EDIT</div>
              <div class="col-sm-4" style="font-size:18px;">APPOINTMENTS</div>
              <div class="col-sm-4 text-right id="delete-appointment">DELETE</div>
        </div>
        <br/>
        <br/>
        <h5 class="text-center" style="font-weight:bold">TIME</h5>
        <hr style="margin:5px;">
        <p class="text-center">`+mydate+`</p>
        <br/>
        <h5 class="text-center" style="font-weight:bold">DURATION</h5>
        <hr style="margin:5px;">
        <p class="text-center">`+parseInt(""+this.eventData[0].events[i].specificDate.duration/60)+`&nbsp;mins</p>
        <br/>
        <h5 class="text-center" style="font-weight:bold">LOCATION</h5>
        <hr style="margin:5px;">
        <p class="text-center">`+this.eventData[0].events[i].specificDate.location+`</p>
        <br/>
        <h5 class="text-center" style="font-weight:bold">NOTES</h5>
        <hr style="margin:5px;">
        <p class="text-center">`+this.eventData[0].events[i].specificDate.notes+`</p>
        <br/>
        </div>
        `;
        }

我需要从编辑选项调用 Angular2 函数 函数名称为 editAppointment((;

你的代码看起来不错。此问题可能是由 css(默认引导程序或您的样式(引起的。您的 EDITdiv 可能继承了不同的位置值。

你能做些什么呢?

  • 将div 位置更改为 relative.it 启用 z 索引并移动您的在其他div 之上编辑div。

最新更新