New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: mini-Option in checkboxradio & textinput #4070

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

Comments

Projects
None yet
4 participants
@negue
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

This comment has been minimized.

Show comment
Hide comment
@toddparker

toddparker Apr 19, 2012

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.

Contributor

toddparker commented Apr 19, 2012

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

This comment has been minimized.

Show comment
Hide comment
@negue

negue Apr 19, 2012

Contributor

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;
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@agcolom

agcolom Apr 19, 2012

Member

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

Member

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

This comment has been minimized.

Show comment
Hide comment
@jaspermdegroot

jaspermdegroot May 20, 2012

Member

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.

Member

jaspermdegroot commented May 20, 2012

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