Giter VIP home page Giter VIP logo

quasar-table-filter's Introduction

quasar-table-filter

Install

npm i git+https://github.com/iColabora/quasar-table-filter.git#semver:^0.1.0

Create a file in boot with content:

import QTableFilter from 'quasar-table-filter/src/components/QTableFilter'

export default ({ Vue }) => {
  Vue.component('QTableFilter', QTableFilter)
  Vue.component('q-table-filter', QTableFilter)
}

This compoent use <q-table> base from Quasar.

Columns options

Like quasar default with follow properties:

Property Type Default Values Description
filter_type String text text, select Filter header type
disableFilter Boolean false true, false Hide filter column

IMPORTANT: Property name must be equal field property, except field of type function, where property name must be equal first key in function. Example:

[
    { name: 'protocol', required: true, label: 'Protocol', align: 'center', field: 'protocol' },
    { name: 'my_company', align: 'center', label: 'Company', field: row => row.my_company ? row.my_company.fantasyName : '', filter_type: 'select' }
]

Component keys

Name Type Default Description
data Array null Rows of data to display
columns Array null The column definitions (Array of Objects)
visible-columns Array null Array of Strings defining column names ('name' property of each column from 'columns' prop definitions); Columns marked as 'required' are not affected by this property
classes String Classes in table
separator String horizontal Use a separator/border between rows, columns or all cells
header-filter Boolean false Show after column name, a button to show a filter column
columns-filter Boolean false Show on header a line with filter each column
dense Boolean false Dense mode; Connect with $q.screen for responsive behavior
dark Boolean false Notify the component that the background is a dark color
flat Boolean false Applies a 'flat' design (no default shadow)
bordered Boolean false Applies a default border to the component
square Boolean false Removes border-radius so borders are squared
loading Boolean false Put Table into 'loading' state; Notify the user something is happening behind the covers
no-data-label String Override default text to display when no data is available
selection String Selection type
table-header-class String CSS classes to apply to header of native HTML

quasar-table-filter's People

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.