This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Option to disable nested listviews #2608
Closed
Description
Right now, any lists within an existing listview are instantiated as a nested list.
Can we make it such that either it's not automatic anymore, or at least that we can add a "data-role='none'" attribute to any nested lists to get a plain html version?
Here's a fiddle to demo it, it'll probably be clearer:
Activity
toddparker commentedon Oct 4, 2011
I'm not sure how you would expect this to be styled. In any case, this is a feature request so please add this to the feature request wiki page here on GitHub and link to this issue so we can re-open if we decide to add this. Seems like addressing styling could get very complex.
rolfvandervleuten commentedon Nov 17, 2011
You can already simulate this behaviour by embedding your nested list in a DIV like this:
UL
LI
DIV
UL
instead of
UL
LI
UL
dcherman commentedon Nov 17, 2011
@rolfvandervleuten That is true, however my use case is a bit unique in that I'm retrieving pre-formed HTML from an internal system and then injecting it as the contents of a list item ( think of comments on a forum ).
Your solution works and is actually how I'm working around this issue right now, however it's not ideal to need to run a regex on each item to wrap embedded lists in DIVs.
That said, it's a low priority item because as you pointed out, there's a known workaround for this and @toddparker mentioned that styling could get hideously complex which is understandable.