Skip to content
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
@dcherman

Description

@dcherman

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/

Activity

toddparker

toddparker commented on Oct 4, 2011

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

rolfvandervleuten commented on Nov 17, 2011

@rolfvandervleuten

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

dcherman commented on Nov 17, 2011

@dcherman
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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @toddparker@dcherman@rolfvandervleuten

        Issue actions

          Option to disable nested listviews · Issue #2608 · jquery-archive/jquery-mobile