Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Request: mini-Option in checkboxradio & textinput #4070

Closed
negue opened this Issue · 4 comments

4 participants

negue Todd Parker Anne-Gaelle Colom Jasper de Groot
negue

Hey,

it would be great to set the default mini-Option for checkboxradio & textinput during mobileinit, I dont want to add a data-mini="true" to each control.

Currently I can only change the default mini-Option for:

  • collapsible
  • listview
  • button
  • slider
  • selectmenu
Todd Parker

I just checked in the source JS for checkradio and testinput and both do have a mini option so maybe this is a documentation issue. Maybe @agcolom can take a look a this.

negue

What I actually meant was an entry inside of

$.widget( "mobile.textinput", $.mobile.widget, {
    options: {
        theme: null,
        // This option defaults to true on iOS devices.
        preventFocusZoom: /iPhone|iPad|iPod/.test( navigator.platform ) && navigator.userAgent.indexOf( "AppleWebKit" ) > -1,
        initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",
        clearSearchButtonText: "clear text",
        mini: false //<<< this part not exists
    }, ...  

and not:

mini = input.jqmData("mini") == true, 

I wanted to set the default Value with:

$.mobile.textinput.prototype.options.mini = true;
Anne-Gaelle Colom
Collaborator

@toddparker just checked the docs and all seems to be well covered in the element entries and the data-attribute page. @eugenb1 has now clarified the issue ( @eugenb1 thanks for the clarification)

Jasper de Groot

I can confirm that the checkboxradio and textinput widgets as well as the controlgroup function don't allow to programmatically set "mini" option. I will work on a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.