Results 1 to 3 of 3

Thread: Datefield without DatePicker?

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    25
    Vote Rating
    0
      0  

    Default Answered: Datefield without DatePicker?

    I'd like to have a datefield without a corresponding datepicker. The reason is that we want the validation controls that go along with the datefield, but there's not enough screen real estate for the full picker, so we'll only allow date entry via the input field.

    Ideally, it'd just be a config item (e.g. includePicker) for datefield, but without that, I'm trying to figure out if there's an override I can do to make this behavior happen (on a datefield by datefield basis). I looked through the source, but not sure what change I could make to do it.

    Any help is much appreciated.

  2. hideTrigger : Boolean
    true to hide the trigger element and display only the base text field

    This will hide the date pickers trigger field, not sure whether this will also prevent the datefield from showing the calendar itself but you could give it a try.

    HTH
    Florian

  3. #2
    Ext JS Premium Member
    Join Date
    Jan 2008
    Location
    Germany, Berlin
    Posts
    135
    Answers
    21
    Vote Rating
    11
      0  

    Default From the docs

    hideTrigger : Boolean
    true to hide the trigger element and display only the base text field

    This will hide the date pickers trigger field, not sure whether this will also prevent the datefield from showing the calendar itself but you could give it a try.

    HTH
    Florian

  4. #3
    Ext JS Premium Member
    Join Date
    Apr 2011
    Posts
    25
    Vote Rating
    0
      0  

    Default works

    This works perfectly...thanks Florian!

Posting Permissions

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