Results 1 to 5 of 5

Thread: How can I set the doneText value in a Ext.form.Select --> picker

  1. #1
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    242

    Default How can I set the doneText value in a Ext.form.Select --> picker

    I am developing an application to be used in Norway and need to use Norwegian on buttons etc.

    I am having trouble setting the "doneText" value on the picker that is created when a Select is tapped on a phone.

    I have temporarily solved this by modifying ext-touch-debug.js so that Ext.form.Select now has a "doneText" property and using this value to set the pickers "doneText" property.

    E.g

    ext-touch.debug.js
    **********************************************
    22240: Ext.form.Select = Ext.extend(Ext.form.TextField, {
    doneText: 'Done',

    22288: onMaskTap : function() {
    if (Ext.is.Phone) {
    this.picker = new Ext.Picker({
    doneText: this.doneText,

    MyCode
    **********************************************
    register.timeTypesField = new Ext.form.Select({
    doneText: 'Ferdig',


    Is there another (proper) way to set a Select's "doneText" property?

  2. #2
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    242

    Default

    no one?

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

    Default

    Code:
    Ext.form.Select.prototype.doneText = 'Foo';
    You can create a locale file of your own by using the one under src/locale as a template. Seems we need to add a few things in there!
    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.

  4. #4
    Ext JS Premium Member SimonFlack's Avatar
    Join Date
    Jul 2010
    Location
    Norway
    Posts
    242

    Default

    Thanks... I'm new to javascript.

Similar Threads

  1. Ext.ux.form.ClockField -- TimeField with analog clock picker
    By NeonMonk in forum Ext 2.x: User Extensions and Plugins
    Replies: 14
    Last Post: 18 Jan 2011, 12:43 PM
  2. Replies: 3
    Last Post: 28 Jun 2010, 2:21 PM
  3. Problem with select field in Ext.form.ComboBox in Ext.form.FormPanel
    By philiparad in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 9 Feb 2010, 11:03 PM
  4. Replies: 5
    Last Post: 8 Jul 2009, 1:10 PM

Posting Permissions

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