yii-dataview icon indicating copy to clipboard operation
yii-dataview copied to clipboard

ListView and semantics

Open sjaakp opened this issue 7 years ago • 3 comments

In an attempt to write semantical correct HTML I used a ListView with:

'options' => [ 'tag' => 'ol' ], 'itemOptions' => [ 'tag' => 'li' ]

However, I learned that the summary and the pager appeared inside the OL, like a kind of list items, which they are certainly not.

Of course, there are ways to work around this, such as overriding renderItems(), but it occurs to me that there must be a simpler way to get a semantical correct list out of ListView.

Perhaps something to consider for Yii3?

sjaakp avatar Mar 19 '19 12:03 sjaakp

Hello, I just notice I have a WIP about this. Just the changes on tests required to finish.

Is this something worth working on? The proposed change goes around modifying the default layout to use ul/li instead of generics divs.

glpzzz avatar Aug 10 '24 18:08 glpzzz

I like this suggestion

vjik avatar Aug 11 '24 09:08 vjik

Is this something worth working on?

Yes, please do.

samdark avatar Aug 11 '24 21:08 samdark

@glpzzz Any news? Maybe you need help?

vjik avatar Sep 02 '24 12:09 vjik

Starting today I have some available days.

EDIT: yes, as I remember, a lot of tests to work on...

glpzzz avatar Sep 02 '24 13:09 glpzzz