JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Editor & Inputs Facing difficulties with: Input. Suggestions welcome.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #112781
    dadsa
    Participant

    How do I handle two-way binding with Smart.DateRangeInput in Vue? Are Vue’s reactive data bindings sufficient?

    #112788
    Markov
    Keymaster

    Hi,

    You can achieve this with a custom v-model wrapper for Vue:

    <template>
      <smart-date-range-input
        :value="modelValue"
        @change="$emit('update:modelValue', $event.detail.value)"
      ></smart-date-range-input>
    </template>
    
    <script>
    export default {
      name: "DateRangeInputWrapper",
      props: {
        modelValue: String
      }
    };
    </script>

    Regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.