JSFiddle - React, Tailwind, and code Playground
by Erik Zanker
HTML
<body>
<div data-role="page" id="customerList" data-theme="a" data-dom-cache="true">
<div data-role="content" data-theme="a" >
<div id="colTogglePlaceholder"></div>
<div style="overflow:auto; width: 100%; ">
<table data-role='table' data-theme='a' id='customerListTable' data-mode='columntoggle' class="ui-body-b ui-shadow table-stripe ui-responsive" data-column-btn-mini="true" data-column-btn-text="Columns to Display" data-column-btn-corners="false" data-column-btn-theme="c" data-column-popup-theme="a" >
<thead>
<tr>
<th data-priority='1'>Name</th>
<th data-priority='1'>No.</th>
<th data-priority='4'>Status</th>
<th data-priority='1'>Unit:Sizecode</th>
<th data-priority='2'>Address</th>
<th data-priority='5'>Town</th>
<th data-priority='3'>Postcode</th>
<th data-priority='5'>Phone</th>
<th data-priority='5'>Email</th>
<th data-priority='5'>Site</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>custno</td>
<td>status</td>
<td>UnitAndSize</td>
<td>address</td>
<td>maintown</td>
<td>mainpostcode</td>
<td>phone</td>
<td>email</td>
<td>TheSite</td>
</tr>
</tbody>
...
JavaScript
$(document).on("pageinit", "#customerList", function () {
$(".ui-table-columntoggle-btn").appendTo("#colTogglePlaceholder");
});