angularjs - 如何向 AngularUI 日历添加图标

标签 angularjs calendar angular-ui glyphicons

我用过这个AngularUI calendar

我想添加像这样的图标(Bootstrap glyphicons)

enter image description here

请帮忙,

谢谢

最佳答案

终于我找到了解决方案。使用className事件对象你可以做到这一点。

$scope.events = [
    {className: 'fa fa-bar-chart', title: 'dashboard', start: new Date(y, m, 1), url: 'http://localhost/view_finance'},
    {className: 'fa fa-user', title: 'dashboard 2', start: new Date(y, m, 1), url: 'http://localhost/view_finance/d/dash2'},
    {className: 'fa fa-bar-chart', title: 'invoice', start: new Date(y, m, 5), url: 'http://localhost/view_finance/invoice/invoice#!/invoice_view'},
    {id: 999, title: 'documents', start: new Date(y, m, d - 3, 16, 0), url: 'http://localhost/view_finance/files/browse/home'},
    {id: 999, title: 'control side', start: new Date(y, m, d + 4, 16, 0), url: 'http://localhost/view_finance/manage/dashboard'},
    {title: 'balance', start: new Date(y, m, d + 1, 19, 0), end: new Date(y, m, d + 1, 22, 30), url: 'http://localhost/view_finance/d/balance'},
    {title: 'invoice settings', start: new Date(y, m, 28), end: new Date(y, m, 29), url: 'http://localhost/view_finance/invoice/invoice#!/invoice_setting'}
];

关于angularjs - 如何向 AngularUI 日历添加图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41762492/

相关文章:

javascript - 浏览器实际上可以将多少 JavaScript 加载到内存中?

javascript - 使用 angularjs 设置下拉列表的默认值?

javascript - 剑道历年变更事件

jquery - 从 Controller 获取 $viewValue

angularjs - Angular UI 路由器 : abstract : true won't display page

javascript - 等待 1 个 promise ,然后所有 promise 都使用 $q

javascript - 如果对象属性是另一个对象,则 Angular 隐藏

ios - 如何以编程方式将参与者添加到我的 iPhone 日历事件?

java - java计算月份和年份的总天数

angular - 如何在 TypeScript/JavaScript 中使用 Angular Material 主题颜色?