Previews

No matching results.

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
<action-menu data-select-variant="single" data-view-component="true">
<focus-group direction="vertical" mnemonics retain>
<button id="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-button" popovertarget="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-overlay" aria-controls="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-list" aria-haspopup="true" type="button" data-view-component="true" class="Button--secondary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Group By</span>
</span>
</button>
<anchored-position data-target="action-menu.overlay" id="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-overlay" anchor="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true" class="Overlay-body Overlay-body--paddingNone"> <action-list>
<div data-view-component="true">
<ul aria-labelledby="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-button" id="action-menu-d00279b9-2090-4768-9063-f870537d6dd3-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<form role="none" action="/view-components/rails-app/action_menu/form_action.html" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="h4E5cNCnrxgEiee5BLy4O--bLfK0PxbbJHBO5y0yBzxuAPyz9LrJ2PeR_Vsj7vNaYbgDZnEvqWAW_IvwbsDkgA" autocomplete="off" />
<input name="query" value="query" type="hidden" data-list-item-input="true" data-view-component="true" />
<input name="foo" value="group-by-repository" type="hidden" data-list-item-input="true" data-view-component="true" />
<button tabindex="-1" id="item-a2510237-b969-4b07-be9b-0330ebb93224" type="submit" role="menuitemradio" aria-checked="false" data-view-component="true" class="ActionListContent">
<span class="ActionListItem-visual ActionListItem-action--leading">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span data-view-component="true" class="ActionListItem-label">
Repository
</span>
</button>
</form>
</li>
<li data-targets="action-list.items" role="none" data-view-component="true" class="ActionListItem">
<form role="none" action="/view-components/rails-app/action_menu/form_action.html" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="TE8Pl1wZmICi584vzPa6ePz3KQHYRqGi3ZaFwoJgTgKlzspUeAT-QFH_1M3rpPEZctQHlR1WHhnvGkDVwZKtvg" autocomplete="off" />
<input name="query" value="query" type="hidden" data-list-item-input="true" data-view-component="true" />
<input name="foo" value="sort-by-date" type="hidden" data-list-item-input="true" data-view-component="true" />
<button tabindex="-1" id="item-763eb6fe-57d2-4178-91fb-82a060cb29a7" type="submit" role="menuitemradio" aria-checked="false" data-view-component="true" class="ActionListContent">
<span class="ActionListItem-visual ActionListItem-action--leading">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check ActionListItem-singleSelectCheckmark">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span data-view-component="true" class="ActionListItem-label">
Date
</span>
</button>
</form>
</li>
</ul>
</div>
</action-list>
</div>
</div>
</anchored-position> </focus-group>
</action-menu>
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
<%= render(Primer::Alpha::ActionMenu.new(select_variant: :single)) do |menu| %>
<% menu.with_show_button { "Group By" } %>
<% menu.with_item(
label: "Repository",
href: action_menu_form_action_path(format: route_format),
form_arguments: {
method: :post,
inputs: [{
name: "query",
value: "query"
}, {
name: "foo", # use "foo" here because that's what the controller expects
value: "group-by-repository",
}],
}
) %>
<% menu.with_item(
label: "Date",
href: action_menu_form_action_path(format: route_format),
form_arguments: {
method: :post,
inputs: [{
name: "query",
value: "query"
}, {
name: "foo", # use "foo" here because that's what the controller expects
value: "sort-by-date"
}]
}
) %>
<% end %>

No assets to display.