【发布时间】:2013-11-30 18:16:10
【问题描述】:
我有一组图像,它们在内容属性/参数中使用 bootstrap popover ui 组件弹出窗口,我想添加 ReactJS MusicList 组件,但我无法弄清楚语法或它是否可能。
var MusicList = React.createClass({
render : function(){
return(<ul><li>Here</li></ul>);
}
});
var PopoverImage = React.createClass({
componentDidMount:function(){
$("#"+this.getDOMNode().id).attr('data-component','<span>here</span>');
$("#"+this.getDOMNode().id).popover({
html:true,
content:
});
},
render:function(){
return(
<img href="#" id={this.props.friend.uid+'_popover'} data-html={true} className="smallImage" src={this.props.friend.pic_small} rel="popover" data-original-title={this.props.friend.name} />
);
}
});
【问题讨论】:
标签: jquery twitter-bootstrap reactjs