Clickable bootstrap row with angular

前端 未结 4 1001
忘了有多久
忘了有多久 2021-02-13 12:20

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

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-13 12:28

    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

    提交回复
    热议问题