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
<nav class="Polaris-Navigation"> <div data-polaris-scrollable-shadow-value="false" data-polaris-scrollable-top-shadow-class="Polaris-Scrollable--hasTopShadow" data-polaris-scrollable-bottom-shadow-class="Polaris-Scrollable--hasBottomShadow" data-controller="polaris-scrollable" style="" class="Polaris-Navigation__PrimaryNavigation Polaris-Scrollable Polaris-Scrollable--vertical"> <span data-polaris-scrollable-target="topEdge"></span> <ul class="Polaris-Navigation__Section"> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <a class="Polaris-Navigation__Item Polaris-Navigation__Item--selected Polaris-Navigation--subNavigationActive" tabindex="0" href="#"> <div class="Polaris-Navigation__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M18 7.261V17.5c0 .841-.672 1.5-1.5 1.5h-2c-.828 0-1.5-.659-1.5-1.5V13H7v4.477C7 18.318 6.328 19 5.5 19h-2c-.828 0-1.5-.682-1.5-1.523V7.261a1.5 1.5 0 0 1 .615-1.21l6.59-4.82a1.481 1.481 0 0 1 1.59 0l6.59 4.82A1.5 1.5 0 0 1 18 7.26z"></path></svg> </span> </div> <span class="Polaris-Navigation__Text"> Home </span> </a> </div> </li> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <a class="Polaris-Navigation__Item" tabindex="0" href="#"> <div class="Polaris-Navigation__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M11 1a1 1 0 1 0-2 0v7.586L7.707 7.293a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.414 0l3-3a1 1 0 0 0-1.414-1.414L11 8.586V1z"></path><path d="M3 14V3h4V1H2.5A1.5 1.5 0 0 0 1 2.5v15A1.5 1.5 0 0 0 2.5 19h15a1.5 1.5 0 0 0 1.5-1.5v-15A1.5 1.5 0 0 0 17.5 1H13v2h4v11h-3.5c-.775 0-1.388.662-1.926 1.244l-.11.12A1.994 1.994 0 0 1 10 16a1.994 1.994 0 0 1-1.463-.637l-.111-.12C7.888 14.664 7.275 14 6.5 14H3z"></path></svg> </span> </div> <span class="Polaris-Navigation__Text"> Orders </span> </a> </div> </li> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <a class="Polaris-Navigation__Item Polaris-Navigation--subNavigationActive" tabindex="0" href="#"> <div class="Polaris-Navigation__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M10.293 1.293A1 1 0 0 1 11 1h7a1 1 0 0 1 1 1v7a1 1 0 0 1-.293.707l-9 9a1 1 0 0 1-1.414 0l-7-7a1 1 0 0 1 0-1.414l9-9zM15.5 6a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"></path></svg> </span> </div> <span class="Polaris-Navigation__Text"> Products </span> </a> </div> <div class="Polaris-Navigation__SecondaryNavigation Polaris-Navigation--isExpanded"> <div class="Polaris-Collapsible" style="max-height: none; overflow: visible;"> <ul class="Polaris-Navigation__List"> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <a class="Polaris-Navigation__Item Polaris-Navigation__Item--selected Polaris-Navigation--subNavigationActive" tabindex="0" href="#"> <span class="Polaris-Navigation__Text"> All products </span> </a> </div> </li> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <a class="Polaris-Navigation__Item" tabindex="0" href="#"> <span class="Polaris-Navigation__Text"> Inventory </span> </a> </div> </li> <li class="Polaris-Navigation__ListItem"> <div class="Polaris-Navigation__ItemWrapper"> <a class="Polaris-Navigation__Item Polaris-Navigation__Item--disabled" tabindex="0" href="#"> <span class="Polaris-Navigation__Text"> Disabled </span> </a> </div> </li> </ul> </div> </div> </li> </ul> <span data-polaris-scrollable-target="bottomEdge"></span> </div></nav>
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
<%= polaris_navigation do |navigation| %> <% navigation.section do |section| %> <% section.item( url: "#", label: "Home", icon: "HomeMajor", selected: true ) %> <% section.item( url: "#", label: "Orders", icon: "OrdersMajor" ) %> <% section.item( url: "#", label: "Products", icon: "ProductsMajor" ) do |item| %> <% item.sub_item( url: "#", label: "All products", selected: true ) %> <% item.sub_item( url: "#", label: "Inventory" ) %> <% item.sub_item( url: "#", label: "Disabled", disabled: true ) %> <% end %> <% end %><% end %>
No notes provided.
No params configured.