Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Metronic Theme -> Vue ->Datepicker -> Wizard


I try to implement the Date Picker from the demo "Set First Target" into the Wizard "Create App" - but i can't receive the Date within my form. The picked Date is not stored in the "Interface" data. I use the name of the declared object within the parent - but the Yup (defined in the parent) tells me, that no data are provided.. I also tried something with refs, but this also do not work...

Does someone have any idea to do this - or another solution like the "Field" Component where i have usage of the parent view...


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi Heico,

Thank you for reaching out to us.

You can use custom input fields in the wizard and validate them by wrapping your input with the "Field" component of vee-validate.

Here is an example:

<Field name="accountName" v-slot="{ field }">
<el-date-picker
v-bind="field"
v-model="field.value"
type="date"
:teleported="false"
name="eventStartDate"
/>
</Field>


Regards,
Lauris Stepanovs,
Keenthemes Support Team



Can you explain accountName and eventStartDate .... shouldn't these be the same?
I'm trying to do much the same, I'm using the wizard but need to convert it all to use element plus as in your example. Thanks!



Hi,

In the example above the second name is not needed, including one name on the Field component is enough.

Here is an updated example:

<Field name="accountName" v-slot="{ field }">
<el-date-picker
v-bind="field"
v-model="field.value"
type="date"
:teleported="false"
/>
</Field>


Regards,
Lauris Stepanovs,
Keenthemes Support Team



HI!
I have tried this, and all I get is
ReferenceError: endDate is not defined
I have tried to define it just about everywhere, but nothing seems to work.

<Field name="pickupEndDate"
type="text"
class="form-control form-control-lg form-control-solid"
v-slot="{ endDate }">
<el-date-picker
v-bind="endDate"
v-model="endDate.value"
type="datetime"
:teleported="false"
/>
</Field>


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(