Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: setting default value for prompt #55

Open
shsmad opened this issue May 22, 2019 · 0 comments
Open

Feature request: setting default value for prompt #55

shsmad opened this issue May 22, 2019 · 0 comments

Comments

@shsmad
Copy link

shsmad commented May 22, 2019

Hi, I didn't find any way to set default value of prompt text input field, because data-field input is not reachable from outside (which is set in plugin/js/mixins/dialog-mixin.js`):

plugin/components/views/default-view.vue:

<input type="text" 
    :placeholder="isPrompt ? '' : options.verification"
    v-model="input"
    autocomplete="off"
    id="dg-input-elem"
    ref="inputElem"
    style="width: 100%;margin-top: 10px;
        padding: 5px 15px; font-size: 16px;
        border-radius: 4px; border: 2px solid #eee"
/>

May by you should make any prop, which will hold value, passed to $dialog.prompt as an option to display in <input>?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant