1.0.5 • Published 7 years ago

vue-lazy-table v1.0.5

Weekly downloads
7
License
ISC
Repository
github
Last release
7 years ago

vue_lazy_table

a Vue table component using easy syntax to display complex data with minimum configutation

minimum setting , auto key labeling

vue_lazy_table(:table_data = "devices")

npm.io

settings with row , support alias and post handler

vue_lazy_table(:table_data = "conclude_table"
                    :rows = "conclude_table_rows"

conclude_table_rows: [
  'total -> 人數總計',
  'avg -> 平均度數',
  'device_count -> 平均填寫電器'
]

//or 
conclude_table_rows: [
  {
    name: "total",
    as: "人數總計",
    handler: (num)=>(num*10)
  },
  'avg -> 平均度數',
  'device_count -> 平均填寫電器'
]

npm.io

settings config

show_id -> auto add id in column if not found or not

show_search -> show search bar

vue_lazy_table(:table_data = "conclude_table"
               :rows = "conclude_table_rows"
               :configs = "{show_id: false, show_search: false}")
          

npm.io

first commit with feature:

  1. auto key extraction from raw json array data
  2. easy row alias assignment e.g. 'size -> TableSize' (if rows not assigned, auto generate label with key)
  3. easy row hide set e.g. 'size -> TableSize | will not display'
  4. allow row-setting syntax in string but also json object {name: '...', as: '...', handler: function(){}} , handler works like computed to post-progress column value, allowing adding unit or post caculation
  5. auto id labeling / label sortable / searchable and paging (like Jquery data table) 6.allow :config {show_id: false, show_search: false}
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago