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

Request: mini-Option in checkboxradio & textinput #4070

Closed
negue opened this issue Apr 17, 2012 · 4 comments
Closed

Request: mini-Option in checkboxradio & textinput #4070

negue opened this issue Apr 17, 2012 · 4 comments
Assignees
Milestone

Comments

@negue
Copy link
Contributor

negue commented Apr 17, 2012

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
@toddparker
Copy link
Contributor

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

negue commented Apr 19, 2012

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;

@agcolom
Copy link
Contributor

agcolom commented Apr 19, 2012

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

@jaspermdegroot
Copy link
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants