Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.63k stars 725 forks source link

[Feature Request] Please can you make column type button, date, and option(dropdown select) #425

Open idzulfaqor opened 2 years ago

idzulfaqor commented 2 years ago

I am opening an issue for

vue-easytable

Issue Type

Feature

Issue Title

Please can you make column type button, date, and option(dropdown select)

What problem does this feature solve?

So if this feature is available, i dont have to install external library or i dont have to make custom body cell because that return button, date input, selecet dropdown because it make interface table so bad.

What does the proposed API look like?

columns:[ { field:"orderDate", name:"ORDER DATE", type:date, edit:true, }, { field:"edit", name:"EDIT", type:button, onclick:(row, cell)=>{ call methods here or write methods here } },

{ field:"items", name:"SELECT ITEMS", type:option, optionData:[{value:"a", title:"AA001"},{value:"b",title:"BB001"}], edit:true, }, ]

idzulfaqor commented 2 years ago

For the type date, add format also, so user can custom format like: format:"yyyy-mm-dd", format:"yy-mm-dd", format:"yyyy", etc. Thanks to make great table, hope you can make this feature, god bless you.

huangshuwei commented 2 years ago

Thanks for your report.

Adding new components will increase the workload. I'll evaluate this new feature.