how to make a whole row in a table clickable as a link?

前端 未结 26 1944
粉色の甜心
粉色の甜心 2020-11-22 14:05

I\'m using Bootstrap and the following doesn\'t work:


    
        
            Blah Blah
           


        
26条回答
  •  耶瑟儿~
    2020-11-22 14:20

    You can use this bootstrap component:

    http://jasny.github.io/bootstrap/javascript/#rowlink

    Jasny Bootstrap

    The missing components for your favorite front-end framework.

    NameDescriptionActions
    Input maskInput masks can be used to force the user to enter data conform a specific format.
    jasny.netShared knowledge of Arnold Daniels aka Jasny.
    Launch modalToggle a modal via JavaScript by clicking this row.

    Usage

    Via data attributes

    Add class .rowlink and attribute data-link="row" to a

    or element. For other options append the name to data-, as in data-target="a.mainlink" A cell can be excluded by adding the .rowlink-skip class to the
    .

    Via JavaScript

    Call the input mask via javascript:

    $('tbody.rowlink').rowlink()
    

    提交回复
    热议问题