[英]How to apply bootstrap styles to angular ui datepicker
I'm using datepicker from angular.ui, and it styled with empty design which you can see in the site . 我使用的是来自angular.ui的datepicker,它的样式为空设计,您可以在网站上看到它。 Now I want to have bootstrap styled datepicker and timepicker without using extra libraries or plugins.
现在,我想使用引导程序样式的datepicker和timepicker,而无需使用额外的库或插件。 Is there a short way to apply bootstrap styles to calendar?
有没有一种简便的方法可以将引导样式应用于日历?
You have three options to modify the default angular-ui-bootstrap style: 您可以通过三个选项来修改默认的angular-ui-bootstrap样式:
-tpls-
distribution version of angular-ui-bootstrap then all the templates are bundled inside $templateCache
, see here . -tpls-
发行版,则所有模板都捆绑在$templateCache
,请参见此处 。 So you could provide your own datepicker template overriding the default template eg $templateCache.put("template/datepicker/popup.html"
$templateCache.put("template/datepicker/popup.html"
If, on the other hand default templates are not what you need you could take ui-bootstrap-[version].min.js and provide your own templates, taking the default ones ( https://github.com/angular-ui/bootstrap/tree/master/template ) as a starting point.
另一方面,如果您不需要默认模板,则可以使用ui-bootstrap- [version] .min.js并提供自己的模板,并使用默认模板( https://github.com/angular-ui/ bootstrap / tree / master / template )作为起点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.