Table Reflow Stripes and Strokes


You can display the data sets in stripes and strokes format using the table-stripe and table-stroke classes.


Following example demonstrates the use of table reflow stripes and strokes in the jQuery Mobile Framework.

<!DOCTYPE html>
      <title>Table Column Toggle Customization</title>
      <meta name = "viewport" content = "width = device-width, initial-scale = 1">
      <link rel = "stylesheet" href = "">
      <script src = ""></script>
      <script src = ""></script>

      <div data-role = "header">
      <table data-role = "table" id = "table_columns" data-mode = "reflow" 
         class = "table-stripe table-stroke ui-responsive">
               <th data-priority = "1">Position</th>
               <th data-priority = "2">Rating</th>
               <th data-priority = "3">Points</th>
               <td>SOUTH AFRICA</td>
               <td>NEW ZEALAND</td>
               <td>SRI LANKA</td>
               <td>WEST INDIES</td>
      <div data-role = "footer">


Let's carry out the following steps to see how the above code works −

  • Save the above html code as jqm_table_reflow_stripes_strokes.html file in your server root folder.

  • Open this HTML file as http://localhost/jqm_table_reflow_stripes_strokes.html and the following output will be displayed.

Kickstart Your Career

Get certified by completing the course

Get Started