在 Angular UI Bootstrap datepicker 中为工作日标签附加点击事件 [英] Attach click event for the weekday labels in Angular UI Bootstrap datepicker

查看:20
本文介绍了在 Angular UI Bootstrap datepicker 中为工作日标签附加点击事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Angular UI Bootstrap 日期选择器与 gm.datepickerMultiSelect 扩展,我想让工作日标签可点击,这样我就可以选择一个月中的所有日子(像所有周三).我可以获取/计算同一工作日的所有天数并将它们添加到选定的天数范围内,但因为我对 AngularJS 和Bootstrap UI,我找不到触发标签点击事件的正确方法.

I'm using Angular UI Bootstrap datepicker with the gm.datepickerMultiSelect extension and I'd like to make weekdays labels clickable, so that I could select all days in the month (like all Wednesdays). I can get/calculate all days of the same weekday and add them to the selected days scope, but as I'm rather new to AngularJS & Bootstrap UI, I can't find the right way to trigger that click event for the labels.

推荐答案

Angular UI Bootstrap 允许您覆盖其指令的模板.您可以通过将其放入类型为 text/ng-template

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆