I have got a table, styled with bootstrap. The content of this table is filled using Angular.js. How do I make a row clickable so it will call a function in the scope?
T
HTML:
CSS: .table-hover > tbody > tr:hover { background-color: #f5f5f5; } And if also whats made the tr selectable: HTML: CSS: tr[ng-click] { cursor: pointer; } View JSFiddle Sample 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
CSS:
.table-hover > tbody > tr:hover { background-color: #f5f5f5; }
And if also whats made the tr selectable:
CSS: tr[ng-click] { cursor: pointer; } View JSFiddle Sample 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
tr[ng-click] { cursor: pointer; }
View JSFiddle Sample