9
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vuetifyのv-data-tableの見出し行(ヘッダー)をドラッグ&ドロップで並べ替える

Last updated at Posted at 2019-03-03

はじめに

テーブルの見出し行(ヘッダー)をドラッグドロップして並び順を変更したいという要望

結論

2019-03-03_19h03_35.gif

drag-n-drop in Vuetify — Part IIに掲載されていたので参考にする。

こちらも行をドラッグ&ドロップして移動させるというサンプルだけど、見出し行でも同様。
一応、vue draggableでも試したけど、躓いたので、ブログに記載のSortable.jsを利用する

See the Pen Vuetify Example Pen by Shigehiro IDANI (@1da2) on CodePen.

9
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?