Dojo DataGrid (DGrid) Adding checkbox column

前端 未结 2 2075
鱼传尺愫
鱼传尺愫 2021-01-17 03:32

I am using Dojo Dgrid however i am trying to add a checkbox column however i am not sure of the approach.

Most of the tutorials i have been looking

2条回答
  •  长情又很酷
    2021-01-17 03:45

    If you want to have a column with checkboxes for the purpose of selecting rows, you should set your sights on the selector column plugin rather than editor. selector is specifically designed to render checkboxes (or radio buttons) in each cell that ties in to the Selection mixin when checked.

    See the documentation in the wiki, and the selector test page.

提交回复
热议问题