Skip to content

closeable on va-alert doesn't work for me #1626

Answered by m0ksem
haofoooo asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! You need to set v-model for this alert or use stateful prop.

<div class="mb-2">
  <va-alert dense class="mb-0" color="warning" closeable v-model="doShowMyFancyAlert">
    <template #icon>
      <va-icon class="ion-md-notifications"/>
    </template>
    {{ $t('foo bar') }}
  </va-alert>
</div>

or with stateful component has its own state.

<div class="mb-2">
  <va-alert dense class="mb-0" color="warning" closeable stateful>
    <template #icon>
      <va-icon class="ion-md-notifications"/>
    </template>
    {{ $t('foo bar') }}
  </va-alert>
</div>

Looks like we forget to make it in vuestic-admin 🙂

More info here: https://vuestic.dev/en/ui-elements/alert#closeable

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haofoooo
Comment options

Answer selected by haofoooo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants