Notifications

Table Dragger

How it works

Table-dragger is a minimalist plain Javascript library for building reorderable drag-and-drop table. table-dragger.

  • Super easy to set up
  • cellspacing, cellpadding, col and colgroup in account
  • Able to sort columns or rows at the same time
  • Smooth animation when sort
  • No bloated dependencies
  • Touch events
Basic Example

Default
With no options, sort columns, handler was the first row

Movie Title Genre Year Gross
Star Wars Adventure, Sci-fi 1977 $460,935,665
Howard The Duck "Comedy" 1986 $16,295,774
American Graffiti Comedy, Drama 1973 $115,000,000
Handler

Specify drag handler wherever within the table

Movie Title dragme Genre Year Gross
Star Wars Adventure, Sci-fi 1977 $460,935,665
Howard The Duck "Comedy" 1986 $16,295,774
American Graffiti Comedy, Drama 1973 $115,000,000
Only Body

Setting onlyBody to true in row mode, user can only lift rows in tBody

Movie Title Genre Year Gross
Star Wars Adventure, Sci-fi 1977 $460,935,665
Howard The Duck "Comedy" 1986 $16,295,774
American Graffiti Comedy, Drama 1973 $115,000,000
Sort Rows

Sort rows, handler was the first column

Movie Title Genre Year Gross
Star Wars Adventure, Sci-fi 1977 $460,935,665
Howard The Duck "Comedy" 1986 $16,295,774
American Graffiti Comedy, Drama 1973 $115,000,000
Free

After mousedown, move mouse horizontally or vertically, see what happens. Don't forget to specify drag handler

Movie Title Genre Year Gross
Star Wars Adventure, Sci-fi 1977 $460,935,665
Howard The Duck "Comedy" 1986 $16,295,774
American Graffiti Comedy, Drama 1973 $115,000,000
<!-- plugin css file  -->
<link rel="stylesheet" href="assets/bundles/tabledragger.min.css">

<!-- Plugin Js -->
<script src="assets/bundles/tabledragger.bundle.js"></script>

<!-- Jquery Page Js -->
<script>
	// Default
	tableDragger(document.querySelector("#default-table"));
	// Handler
	tableDragger(document.querySelector("#handle-table"), { dragHandler: ".handle" });
	// Sort Rows
	tableDragger(document.querySelector("#row-table"), { mode: "row" });
	// Free
	tableDragger(document.querySelector("#free-table"), { mode: "row", onlyBody: true, dragHandler: ".handle" });
	// Only Body
	tableDragger(document.querySelector("#only-bodytable"), { mode: "row", onlyBody: true });
</script>
Need a Help?

Support at pixelwibes@gmail.com

Join our developers community to find answer to your question and help others.
Helpful Links
  • Assigned Tasks View All
  • 158
    1/5 Pending
  • 17
    3/5 Completed
  • 43
    4/5 On Hold
  • 27
    2/5 In Progress
  • Latest Tasks
    1. HR Dashboard
      Tempor fames sapien tristique bibendum per quisque senectus.
      friend friend
      Feedback
    2. Logo Design
      Create new logo in Figma file
      friend friend friend
      New
    3. Hospital App
      the logo of the company you are applying to and an image.
      Feedback
    4. CRM Project
      Convallis mollis porttitor nisi dis adipiscing.
      Changes
  1. comments Lorem Ipsum is simply dummy text of the printing and typesetting industry.
  2. comments Lorem Ipsum is simply dummy text of the printing and typesetting industry.
  3. BOOM!

  • Outgoing Emails View All
  • 158
    1/5 Sending
  • 752
    1/5 Sent
  • 125
    1/5 Delivered
  • 42
    1/5 Failed
  • Latest message View All
    • Avatar
      Github 8 minutes ago

      Where are we in terms of design?

    • Avatar
      Themeforest 12 minutes ago

      Where are we in terms of design?

    • Avatar
      Paybee inc. 22 minutes ago

      Where are we in terms of design?

    • Avatar
      Github 28 minutes ago

      Where are we in terms of design?

Template Setting
Template Site map url