Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Option to disable nested listviews #2608

Closed
dcherman opened this issue Oct 4, 2011 · 3 comments
Closed

Option to disable nested listviews #2608

dcherman opened this issue Oct 4, 2011 · 3 comments

Comments

@dcherman
Copy link

dcherman commented Oct 4, 2011

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:

http://jsfiddle.net/ATLkq/12/

@toddparker
Copy link
Contributor

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
Copy link

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
Copy link
Author

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants