KendoUI 是否实现或提供 Twitter Bootstrap 功能?我在剑道中看到了一个 css - kendo.bootstrap.min.css。有什么灯可以点亮吗?
4 回答
实际上,如果您使用的是 Bootstrap,Kendo 现在提供了他们样式的特殊版本。它允许更好地融合 Kendo UI 小部件和 Bootstrap 组件。您现在应该包含这些文件:
kendo.common-bootstrap.min.css
和你想要的主题文件 - Bootstrap 显然是最好的选择:kendo.bootstrap.min.css
.
参考:Kendo UI Docs - Using Kendo with Twitter Bootstrap
(示例- 查看 HTML 中的页眉)
如果你想修改选定的主题,你应该使用他们的Theme Builder,但它有时有点错误(到目前为止)。
不要忘记 Kendo UI 和 Bootstrap 实际上是完全独立的产品,而这一切都只涉及“外观和感觉”。
Kendo UI 不是基于 Twitter Bootstrap。它提供了一个 CSS 主题,旨在类似于 Bootstrap 的默认主题。这就是 kendo.boostrap.min.css 文件的内容。您需要在 kendo.common.min.css 之后包含它:
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.common.min.css" rel="stylesheet" />
<link href="http://cdn.kendostatic.com/2013.2.918/styles/kendo.bootstrap.min.css" rel="stylesheet" />
这是一个现场演示:http: //jsbin.com/uwuJUfE/1/edit
New answer - With the release of Bootstrap 4.0.0 and the Kendo UI 2018 R1 release, the answer is now yes . . . sort of. The SASS files of the special Bootstrap theme share the SASS variables that Bootstrap V4 is using. The class names are all still pure Kendo (k-*). You may need to have a commercial license. Use npm to retrieve the kendo-theme-bootstrap package. It looks like this package includes Bootstrap V4 so you may not really need to install that separately. No support for LESS.
Old Answer - The ONLY part of Bootstrap that Telerik has attempted to implement/coexist with is the Twitter Bootstrap responsive "Grid" layout. That's not to be confused with the Kendo Grid widget. Buried somewhere in their blogs or docs is a comment to the effect that Kendo does not do layout so they have accommodated the Bootstrap layout. There is no support for any of the Bootstrap widgets or CSS classes. The Kendo Bootstrap theme does look similar to Bootstrap but doesn't use any part of Bootstrap i.e. if you restyle your Bootstrap button, you'll have to figure out how to duplicate the change in the Kendo theme too. IMHO their claims of support for Bootstrap was more of a marketing ploy than implementation of any substance. That said, Kendo does have similar alternatives most of the Bootstrap components. I've gone with total Kendo because it's simpler than trying to get them to work together.
简单地说,没有。
目前,Sass 主题还没有实现响应式 Pager 功能。此功能请求记录在此处:
https://github.com/telerik/kendo-themes/issues/121
在实现此功能之前,您可以遵循此知识库文章中的建议:
https://docs.telerik.com/kendo-ui/knowledge-base/pager-responsive-numbers-sass-themes