How to Use slideDown (or show) function on a table row?

后端 未结 21 2572
清歌不尽
清歌不尽 2020-11-22 09:03

I\'m trying to add a row to a table and have that row slide into view, however the slidedown function seems to be adding a display:block style to the table row which messes

21条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 09:48

    I've gotten around this by using the td elements in the row:

    $(ui.item).children("td").effect("highlight", { color: "#4ca456" }, 1000);
    

    Animating the row itself causes strange behaviour, mostly async animation problems.

    For the above code, I am highlighting a row that gets dragged and dropped around in the table to highlight that the update has succeeded. Hope this helps someone.

提交回复
热议问题