Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jul 2009
    Posts
    20
    Vote Rating
    0
    Ralph Haygood is on a distinguished road

      0  

    Default [CLOSED] placeHolder vs. placeholder

    The documentation says Ext.form.Field has a config option "placeHolder" (uppercase H), but the code implements "placeholder" (lowercase h).

  2. #2
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,965
    Vote Rating
    12
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default

    Quote Originally Posted by Ralph Haygood View Post
    The documentation says Ext.form.Field has a config option "placeHolder" (uppercase H), but the code implements "placeholder" (lowercase h).
    @Ralph --
    Yes, the Touch component configuration options are (consistently) camelCase throughout the framework, and the rendering templates resolve those differences as needed.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #3
    Ext JS Premium Member cnelissen's Avatar
    Join Date
    Sep 2007
    Location
    California
    Posts
    226
    Vote Rating
    9
    cnelissen will become famous soon enough

      0  

    Default

    Doug, its actually broken in Ext.Field...

    Code:
    renderTpl: [
            '
    id="{id}" class="{baseCls} {required} {cls} {cmpCls} {uiBase}-{ui} {labelAlign}"  style="{style}">',
                'for="{inputId}">{label}',
                'tabIndex="{tabIndex}" ',
                    'placeholder="{placeholder}" ', // <-- Not CamelCase
                    'style="{style}" ',
                    'maxlength="{maxlength}" ',
                    'autocomplete="{autoComplete}" ',
                    'autocapitalize="{autoCapitalize}" ',
                    'autocorrect="{autoCorrect}" ',
                '/>',
                '
    ',
    Code:
    Ext.applyIf(renderData, {
                disabled:   me.disabled,
                fieldCls:   'x-input-' + me.inputType + (me.inputCls ? ' ' + me.inputCls : ''),
                fieldEl:    !me.fieldEl && me.autoCreateField,
                inputId:    Ext.id(),
                label:      me.label,
                labelAlign: 'x-label-align-' + me.labelAlign,
                name:       me.name || me.id,
                placeholder: me.placeholder, // <-- Not CamelCase
                required:   me.required ? 'x-field-required' : undefined,
                style:      me.style,
                tabIndex:   me.tabIndex,
                maxlength : me.maxLength,
                type:       me.inputType,
                maskField:  me.maskField,
                showClear:  me.showClear
            });
    - Clint Nelissen

  4. #4
    Sencha - Services Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,965
    Vote Rating
    12
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default

    Sorry,

    I should have said, "in the next release".
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


Similar Threads

  1. How to replace placeholder components
    By froamer in forum Ext Designer: Help & Discussion
    Replies: 24
    Last Post: 17 Jan 2012, 2:47 AM
  2. Drag and drop panels with placeholder
    By jaisonjames in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 14 Dec 2010, 10:02 PM
  3. [CLOSED][3.0.3] Corrupt placeholder-bar
    By defcon1 in forum Ext 3.x: Bugs
    Replies: 6
    Last Post: 17 Nov 2009, 2:11 AM
  4. Image placeholder...
    By jollyca in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 28 Aug 2008, 6:44 AM
  5. How to customize the placeholder
    By joey in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 14 Jul 2007, 4:57 AM

Thread Participants: 2