x
    
    1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<div class="Polaris-LegacyCard Polaris-LegacyCard--withoutTitle">  <div class="">    <div data-controller="polaris-data-table" class="Polaris-DataTable">      <div class="Polaris-DataTable__ScrollContainer">        <table class="Polaris-DataTable__Table">          <thead>            <tr>              <th scope="col" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--firstColumn Polaris-DataTable__Cell--header">                Product              </th>                              <th scope="col" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--header">                Price              </th>                              <th scope="col" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--header">                SKU Number              </th>                              <th scope="col" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--header">                Net quantity              </th>                              <th scope="col" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--header">                Net sales              </th>          </tr>            <tr>              <th scope="row" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--firstColumn Polaris-DataTable__Cell--total">                Totals              </th>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--total">              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--total">              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--total">                255              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric Polaris-DataTable__Cell--total">                $155,830.00              </td>            </tr>          </thead>          <tbody>            <tr data-polaris-data-table-target="row" class="Polaris-DataTable__TableRow Polaris-DataTable--hoverable">              <th scope="row" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--firstColumn">                Emerald Silk Gown              </th>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                $875.00              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                124689              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                140              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                $122,500.00              </td>            </tr>                        <tr data-polaris-data-table-target="row" class="Polaris-DataTable__TableRow Polaris-DataTable--hoverable">              <th scope="row" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--firstColumn">                Mauve Cashmere Scarf              </th>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                $230.00              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                124533              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                83              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                $19,090.00              </td>            </tr>                        <tr data-polaris-data-table-target="row" class="Polaris-DataTable__TableRow Polaris-DataTable--hoverable">              <th scope="row" class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--firstColumn">                Navy Merino Wool Blazer with khaki chinos and yellow belt              </th>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                $445.00              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                124518              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                32              </td>                                <td class="Polaris-DataTable__Cell Polaris-DataTable__Cell--verticalAlignTop Polaris-DataTable__Cell--numeric">                $14,240.00              </td>            </tr>        </tbody>        </table>      </div>      <div class="Polaris-DataTable__Footer">        <p>Showing 3 of 3 results</p>      </div>    </div>  </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<% data = [  { product: "Emerald Silk Gown", price: "$875.00", sku: 124689, qty: 140, sales: "$122,500.00" },  { product: "Mauve Cashmere Scarf", price: "$230.00", sku: 124533, qty: 83, sales: "$19,090.00" },  { product: "Navy Merino Wool Blazer with khaki chinos and yellow belt", price: "$445.00", sku: 124518, qty: 32, sales: "$14,240.00" },] %><%= polaris_card(sectioned: false) do %>  <%= polaris_data_table(data, totals_in_header: true) do |table| %>    <% table.with_column("Product", total: "Totals") do |row| %>      <%= row[:product] %>    <% end %>    <% table.with_column("Price", numeric: true) do |row| %>      <%= row[:price] %>    <% end %>    <% table.with_column("SKU Number", numeric: true) do |row| %>      <%= row[:sku] %>    <% end %>    <% table.with_column("Net quantity", numeric: true, total: 255) do |row| %>      <%= row[:qty] %>    <% end %>    <% table.with_column("Net sales", numeric: true, total: "$155,830.00") do |row| %>      <%= row[:sales] %>    <% end %>    <% table.with_footer do %>      <p>Showing 3 of 3 results</p>    <% end %>  <% end %><% end %>No notes provided.
No params configured.