Results 1 to 3 of 3

Thread: 6.6 Modern Ext.Date.firstDayOfWeek does not work in Ext.field.Date

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Exclamation 6.6 Modern Ext.Date.firstDayOfWeek does not work in Ext.field.Date

    According to https://docs.sencha.com/extjs/6.6.0/...l#cfg-startDay setting Ext.Date.firstDayOfWeek should cause this setting to apply to Ext.panel.Date startDay.

    It does not.

    See Fiddle https://fiddle.sencha.com/#view/editor&fiddle/2k14

    The fiddle also contains a work-around.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,257

    Default

    This occurs because startDay is set at class definition time, so by the time Ext.Date.firstDayOfWeek it set, it's too late.

    A workaround would be to have the value on the class body default to undefined, then push the value in an applier.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Touch Premium Member
    Join Date
    Sep 2011
    Posts
    99

    Default

    The workaround that we came up with was to set floatPicker with the default contents found in the sources plus our own.
    Code:
    floatedPicker: {
        xtype: 'datepanel',
        autoConfirm: true,
        floated: true,
        listeners: {
            tabout: 'onTabOut',
            select: 'onPickerChange',
            scope: 'owner'
        },
        keyMap: {
            ESC: 'onTabOut',
            scope: 'owner'
        },
        // ADD your own customization here
        startDay: Ext.Date.firstDayOfWeek,
        hideOutside: false,
        headerLength: 3
    }

Similar Threads

  1. Replies: 10
    Last Post: 11 May 2018, 9:16 AM
  2. Replies: 3
    Last Post: 11 Sep 2017, 12:38 AM
  3. Replies: 3
    Last Post: 14 Aug 2017, 1:28 PM
  4. Replies: 0
    Last Post: 22 Apr 2013, 11:41 PM
  5. Ext.PDate [4] (Extjs persian date) with date picker and date field
    By vahid4134 in forum Ext:User Extensions and Plugins
    Replies: 38
    Last Post: 9 Mar 2013, 3:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •