You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This model will be used for showing prompt modals to the user, such as:
to ask the user if they're sure if they want to install an add-on
if they're sure to open an external URL
to show what's new
to show advanced context menus on right click (will require different styling/custom popup position, but follows the same logic)
to show subtitle controls
and others
PromptStack model that keeps a stack of user prompts that resolve to being closed or actions
It will handle a Msg: OpenPrompt { title, content, buttons }
title is a string title, content is a markdown string, and buttons is Vec<PromptButton>
PromptButton will have content, tooltip, onAction which is a enum PromptButtonAction { Dismiss, MsgAndDismiss(Msg), MsgNoDismiss(Msg) }
more than one prompts can be stacked (nested), hence the name PromptStack
we can use the prompt stack in conjunction with other stateful components, such as the subtitle picker; it will just use the promptstack for it's show/hide logic
The text was updated successfully, but these errors were encountered:
This model will be used for showing prompt modals to the user, such as:
and others
PromptStack model that keeps a stack of user prompts that resolve to being closed or actions
It will handle a
Msg
:OpenPrompt { title, content, buttons }
title
is a string title,content
is a markdown string, andbuttons
isVec<PromptButton>
PromptButton
will havecontent
,tooltip
,onAction
which is aenum PromptButtonAction { Dismiss, MsgAndDismiss(Msg), MsgNoDismiss(Msg) }
more than one prompts can be stacked (nested), hence the name
PromptStack
we can use the prompt stack in conjunction with other stateful components, such as the subtitle picker; it will just use the promptstack for it's show/hide logic
The text was updated successfully, but these errors were encountered: