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.64k stars 730 forks source link

Select/Unselect Records Through Checkbox Only, Grid Inline Editable trigger #2468

Closed elfwine closed 8 months ago

elfwine commented 9 months ago

Request 1) Select/Unselect Record Through Checkbox only Given with this grid example, row/s can be selected and unselected through checkbox or any click on row/cell. Is there any way that any click on row/cell won't select/deselect row selection/s?

Request 2) Grid's Cell Inline Editable Trigger Inline editable is trigger by double-click, there are some request that the editable cell can be triggered by just one-click. I can come-up with the solution of calling onEditField in onClick event, but it would be nice if there's a built in settings for this.

vitmalina commented 8 months ago

add this event to the grid

    onClick(event) {
        if (event.detail?.column != null) {
            event.preventDefault()
        }
      },

See https://jsfiddle.net/1w2rze7p/19/