Results 1 to 3 of 3

Thread: Today button tooltip in datefield defaults to "Date (Spacebar)"

  1. #1
    Sencha User
    Join Date
    Aug 2015
    Location
    India
    Posts
    24

    Default Today button tooltip in datefield defaults to "Date (Spacebar)"

    Hi everyone,

    I was just working out with date field and found something nasty. Today button in datefield picker has a tooltip which shows "Date (Spacebar)". I am not sure what's the use of specifying spacebar in tooltip.
    I have a workaround to fix this tooltip. Hope it helps somebody.

    Code:
    dateField.picker.todayBtn.setTooltip(Ext.Date.format(new Date(), dateField.format));
    Thanks!

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

    Default

    It allows the user to discover that they can use the spacebar key to activate today, the first time they mouse over it.

    Why is that a problem?
    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
    Sencha User
    Join Date
    Aug 2015
    Location
    India
    Posts
    24

    Default

    Spacebar din't work for me. Requirement was only to display date as a tooltip. It was just a solution that I have posted.
    Thanks!

Similar Threads

  1. Replies: 11
    Last Post: 12 Jul 2015, 2:15 AM
  2. Getting rid of the "Date Picker <today's date>" tooltip
    By hghubert in forum Ext: Discussion
    Replies: 1
    Last Post: 25 Mar 2012, 9:11 AM
  3. Disable or hide "Today" button in a DateField.
    By SmokerQC in forum Ext GWT: Discussion
    Replies: 3
    Last Post: 16 Jun 2011, 9:45 PM
  4. Change the "today" button label in dateField
    By sebastien in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 Nov 2009, 6:03 AM
  5. DateField and removeing the "today" button?
    By FlexIDX in forum Ext 1.x: Help & Discussion
    Replies: 7
    Last Post: 18 Jun 2007, 11:42 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
  •