简体   繁体   English

kendo-react-ui中的容器,行,列

[英]Container, Row, Cols in kendo-react-ui

I am using components from kendo-react-ui for my react project. 我正在将kendo-react-ui的组件用于我的react项目。 I am trying to use Layout properties like Container, Row, Cols to make it responsive as we have in bootstrap 4. Please find my code below : 我正在尝试使用容器,行,列等布局属性,使其像我们在引导程序4中一样具有响应性。请在下面找到我的代码:

<div className="container cont">
    <div className="row">
        <div className="col-xs-12 col-sm-6 col-md-6">
            <Button primary={true}>Add User</Button>
        </div>
    </div>
</div>

The above code takes up entire row. 上面的代码占用了整行。 I am using kendo-theme-material. 我正在使用剑道主题材料。 Could anyone let me know how to achieve this in kendo-react-ui ? 谁能让我知道如何在kendo-react-ui中实现这一目标?

Thanks 谢谢

Thanks @Xizario After contacting kendo's support team, I came to know that we have to install bootstrap dependency separately to make the application responsive. 感谢@Xizario与kendo的支持团队联系后,我知道我们必须单独安装bootstrap依赖项才能使应用程序响应。 I have added reactstrap which uses bootstrap 4. 我添加了使用bootstrap 4的reactstrap。

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM