New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vue-details

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-details

Proper support for `<details>` tag in Vue.js including `v-model` attribute

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
107
27.38%
Maintainers
1
Weekly downloads
 
Created
Source

npm version

Vue Details for Vue 2

Proper support for <details> tag in Vue.js including v-model attribute.

Get Started

Using Node.js

Install package

npm install vue-details

Initialize globally

import Vue from 'vue';
import VueDetails from 'vue-details';

Vue.component('v-details', VueDetails);

or locally as shown in the example below.

Using CDN

Load script

<script src="https://cdn.jsdelivr.net/npm/vue-details"></script>

or

<script src="https://unpkg.com/vue-details/dist/vue-details.min.js"></script>

Register component

Vue.component('v-details', VueDetails);

An Example

Try it Online

  • Codepen

Code in a .vue File

<template>
  <v-details v-model="open">
    <summary>
      Content is {{ open ? 'shown' : 'hidden' }}
    </summary>
    <p>
      Expandable content
    </p>
  </v-details>
</template>

<script>
import VueDetails from 'vue-details';

export default {
  data() {
    return {
      open: true
    }
  },
  components: { 'v-details': VueDetails }
}
</script>

Keywords

vue

FAQs

Package last updated on 14 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts