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.

feature request: data-corners="false" specifyable on input elements #4764

@frequent

Description

@frequent

I'm often constructing sort-of controlgroups by grouping checkboxes or input elements. Like so:

 <div data-role="controlgroup">
     <span class="ui-li ui-li-divider ui-bar-a ui-corner-top"><span class="ui-divider-text">Divider</span></span>
     <input type="button" data-icon="arrow-r" data-iconpos="right" value="do this" class="trigger_do_this" />
     <input type="button" data-icon="arrow-r" data-iconpos="right" value="do that" class="trigger_do_that"  />
     ....
  </div>

While this works most of the times, I'm often ending up with the first input element receiving ui-corner-top and have not really found a way to disable this (excluding Jquery-ing the class away from the wrapping .ui-btn and .ui-btn-inner on pagebeforeshow.

So my idea was to allow data-corners="false" to also be set on the input and if set, to not add any corner classes to the wrapping elements added by JQM. Could maybe be used on other elements as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions