vitmalina / w2ui

UI widgets for modern apps. Data table, forms, toolbars, sidebar, tabs, tooltips, popups. All under 120kb (gzipped).
http://w2ui.com
MIT License
2.67k stars 727 forks source link

w2grid column's editable with type='select' work ok in v1.5 but NOT work in v2.0 #2535

Open vinhpt2 opened 5 months ago

vinhpt2 commented 5 months ago

We now have stuck when update application from w2ui v1.5 to w2ui v2.0 because "w2grid column's editable with type='select' work ok in v1.5 but NOT work in v2.0". Please fix. Thanks!

vinhpt2 commented 4 months ago

w2grid column's editable with type='combo' also not work. Type='list' have error: "TypeError: query(...).find(...).focus is not a function at HTMLDivElement. (w2ui.es6.min.js:475:1023)"

vitmalina commented 3 months ago

Type select is deprecated. Use type list. As for combo field, it should work

vinhpt2 commented 1 month ago

What a pity when 2.0 not support select control when edit grid inline. Can I contribute 100USD for bring it back. Any one want to contribute with me? Thanks in advance.

vitmalina commented 1 month ago

Thank you for you offer. I am just curious about type: 'list'. Is there an issue for you to use it? Is is very similar to select and should provide similar experience. Here is a link to the demo page where it is implemented: https://w2ui.com/web/demos/#/grid/21

vinhpt2 commented 1 month ago

Thanks for your reply! First of all if input data by keyboard the "select" is more quick and familiar with "list". When use Safari or Chrome on mobile, 'list' cannot compare with 'select' because iOS or Android is support 'select' not 'list'. The second is we use both w2form and w2grid to show data. So in form use 'select' in grid use 'list' is not good ui/ux.

By the way please answer, It there any way to customize new type of w2field in w2ui-2.x. With w2ui-1.x we can do it with jquery $.