Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (52 sloc) 1.16 KB
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<script src="js/PwNode.js"></script>
<script src="js/PwTableDND.js"></script>
</head>
<body>
<button class="pw_table_dnd" event="click" action="update_sort">Update</button>
<table id="sortable-table">
<thead>
<tr>
<th>City</th>
</tr>
</thead>
<tbody>
<tr row-id="1">
<td>Tokyo</td>
</tr>
<tr row-id="2">
<td>Osaka</td>
</tr>
<tr row-id="3">
<td>Nagoya</td>
</tr>
<tr row-id="4">
<td>Kobe</td>
</tr>
</tbody>
</table>
<script>
pw_table_dnd = new PwTableDND(
{
url: '',
table_id: 'sortable-table',
row_id_column: 'row-id',
is_show_up: true,
is_show_down: true,
drag_label: '[=]',
top_label: '[T]',
bottom_label: '[B]',
is_font_awesome: false
}
);
pw_table_dnd.edit();
</script>
</body>
</html>
You can’t perform that action at this time.