当前位置:  开发笔记 > 前端 > 正文

如何将图标添加到AngularUI日历

如何解决《如何将图标添加到AngularUI日历》经验,为你挑选了1个好方法。

我使用了这个AngularUI日历

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

在此输入图像描述

请帮忙,

谢谢



1> Menaka Kariy..:

最后我找到了解决方案.使用classNameEvent Object,你可以做到这一点.

$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'}
];

推荐阅读
我我檬檬我我186
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有