Replies: 5 comments
-
👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure To help make this a smooth process, please be sure you have first read the |
Beta Was this translation helpful? Give feedback.
-
I just remembered there is a way to achieve something similar already. The Prompt dialog supports a const value = await context.app.prompt('Some Prompt', {
label: 'My Label',
submitName: 'Submit',
cancelable: true,
hints: ['Option 1', 'Option 2'],
});
console.log('VALUE', value); |
Beta Was this translation helpful? Give feedback.
-
Could we just expose the the SelectModal throught the app.js the same way PromptModal is? |
Beta Was this translation helpful? Give feedback.
-
I have a change in my local branch, @gschier Could I contribute these lines to unblock a good amount of workflows? Do you think adding the SelectModal to be accessed the same way as PromptModal (e.g. context.app.select) fits the interest of the project? |
Beta Was this translation helpful? Give feedback.
-
@gschier ? The prompt hints do not give me the possibility to to have a label/id pair to bind with each option, the SelectModel give this possibility. |
Beta Was this translation helpful? Give feedback.
-
Something similar to the prompt plugin, but being an enum/array vs string, this could be very useful in many situations.
My use case is I have a REST API, I have a rout to create token, it takes an enum of 'rest' or 'validate' for the token type. Instead of adding a new request or manually inputting 'rest' or 'validate', it would be nice to have a prompt to select one of them.
Beta Was this translation helpful? Give feedback.
All reactions