简体   繁体   English

react-bootstrap组件文档

[英]react-bootstrap component documentation

I'm looking for the documentation of react-bootstrap components. 我正在寻找react-bootstrap组件的文档。 I see that on the react-boostrap site it is available the code to create the components, but what about how to use them, or the parameters they accept? 我看到在react-boostrap网站上可以找到创建组件的代码,但是如何使用它们或它们接受的参数呢?

(for example, if I have a Tab, how can I intercept its onclick? or, does it have an onclick event?) (例如,如果我有一个Tab,该如何拦截它的onclick?还是它具有onclick事件?)

If you want to add an onClick event, in most cases you can just define it on the element: 如果要添加onClick事件,在大多数情况下,您可以在元素上定义它:

<Button bsStyle="primary" onClick={alert("you clicked me")}>Default button</Button>

There is also documentation here , for how to intercept the tab onSelect event using the eventKey method. 还有一个文档在这里 ,如何拦截使用eventKey方法的标签onSelect事件。

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

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