Can you provide a case of a browser right-click pop-up menu? #2148
Unanswered
ys2rice2yangsong
asked this question in
Q&A
Replies: 1 comment
-
(In the future, for a support question like this, rather than opening an issue and deleting the issue template, please open a question in discussions like this.) I have never done this but a quick Google search told me that the #[component]
pub fn App() -> impl IntoView {
let (show, set_show) = create_signal(false);
window_event_listener(ev::contextmenu, move |ev| {
ev.prevent_default();
set_show.set(true);
});
view! {
<Show when=show>
<ol>
<li>"Item 1"</li>
<li>"Item 2"</li>
<li>"Item 3"</li>
</ol>
</Show>
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can you provide a case of a browser right-click pop-up menu?
Beta Was this translation helpful? Give feedback.
All reactions