Like the title, I want to realize that when I click on a cell, that cell will change color to distinguish it from other cells, and it will be a single selection. Or how to get the cell object based on the index in the list
To achieve a radio-select-like effect, you can probably do this: Use the selected field of the current row to determine whether it is selected, thereby changing the background-color Dom structure as follows:
Use active pseudo-class in css
Please refer to http://weex.apache.org/cn/ref...
To achieve a radio-select-like effect, you can probably do this:
Use the selected field of the current row to determine whether it is selected, thereby changing the
background-color
Dom structure as follows:
The js structure is as follows:
Hope it can help you