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

v-tree-data-table

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

v-tree-data-table

A Data Table with a Tree for Vuetify.

latest
Source
npmnpm
Version
1.0.17
Version published
Maintainers
1
Created
Source

Vuetify Tree Data Table

Tree functionality added to the Vuetify Data Table. Supports DnD sorting and moving nodes to new parents.

You must have Vuetify loaded to use this component.

Usage

NPM

npm install v-tree-data-table

Yarn

yarn add v-tree-data-table

To use simply register the component with Vue

import TreeDataTable from 'v-tree-data-table';
Vue.component('v-tree-data-table', TreeDataTable);

Props

PropTypeRequiredUsage
headersArrayYesHeaders for the v-data-table
itemsArrayYesitems for the v-data-table, should contain tree data. (expanded, children, loaded, depth)
paginationObjectYesPagination object for the v-data-table
totalItemsNumberYestotal-items for v-data-table
loadingBooleanYesIf the data is being loaded
rowsPerPageItemsArrayNoPassed through to for v-data-table
rowsPerPageTextStringNoPassed through to for v-data-table
selectAll[Boolean, String]Noselect-all for v-data-table
validDropFunctionNoFunction that returns true or false if it is a valid drop.

Emits

dblclick

When a row is double clicked

Arguments

event - Browser event
node - Node that was clicked

contextmenu

Mouse right click

Arguments

event - Browser event
node - Node that was clicked

load

Called when the data should be reloaded into the items property

Arguments

pagination - Pagination data from v-data-table

input

When a row is selected

Arguments

selected - Selected Node

drop

When a node is dropped

Arguments

node - Node that was dropped
oldParent - The previous parent of the node
parentNode - The new parent of the node
previousSibling - The previous sibling of the node
nextSibling - The next sibling of the node
nodes - All nodes
revert - Function to revert drop

node-toggle

When a node is toggled

Arguments

node - Node record that was toggled

Example

To run the example, simple clone down repo and open index.html in a browser.

License

Tree Data Table is open-sourced software licensed under the MIT license.

Keywords

vuetify

FAQs

Package last updated on 05 Mar 2019

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