Git Product home page Git Product logo

vuetify-datatable's Introduction

vuetify-datatable

Vuetify data table that supports search, column filtering and merged rows.

Example table

Name Task Priority Progress Status
ThetaDev Feature: User registration ๐Ÿ”ธ[mid] 65% Tests:โŒ Pr:๐Ÿ”ต
^^^^^^^^ Documentation ๐Ÿ”น[low] 15% ^^
Max Fix: API error ๐Ÿ”บ[high] 100% Tests:โœ… Pr:โœ…

Table structure

  • Column name => TableField component
const tableFields = {
    Name: TableFieldText,
    Task: TableFieldText,
    Priority: TableFieldIconPriority,
    Progress: TableFieldPercent,
    Status: TableFieldStatus,
}

Table data

  • Array of items
    • Array of colums
      • Array of data elements/objects
const tableData = [
    [
        ['ThetaDev'],
        ['Feature: User registration', 'Documentation'],
        [2, 3],
        [65, 15],
        [2],
    ],
    [
        ['Max'],
        ['Fix: API error'],
        [2, 3],
        [65, 15],
        [2],
    ]
]

TableField

TableFields define the structure of the table. Here are the required attributes:

Props:

  • rspan: Rowspan of the table cell
  • val: Value (from data object)

Methods:

  • getSearchable(val): returns string to be searched for (default: null)
  • getFilterable(val): returns string to be filtered for (default: null)

Use in Vue template

<DataTable title="DataTable Demo" :fields="tableFields" :data="tableData"/>

vuetify-datatable's People

Contributors

theta-dev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.