Results 1 to 8 of 8

Thread: 'ref' config option can't be edited

  1. #1
    Ext User
    Join Date
    Mar 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default 'ref' config option can't be edited

    'ref' config option can't be edited, which would be really useful for event handling.

    whats the best way of event handling with ext designer?

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    I wouldn't think you'd want to set them up on the base class but in the configuration when you implement them.

  3. #3
    Ext User
    Join Date
    Mar 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default event handling

    I wanted to set them up, so I could easily refer to the sub-components within the base class. This way I can set up event handling in the main class.

    Could you please give me a good example of event handling in a class that's base class was designed by Ext Designer?

    thank you

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    We will have this in an upcoming release: http://www.extjs.com/forum/showthread.php?t=95598

  5. #5
    Ext User
    Join Date
    Mar 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default best practices

    I agree. It would be nice to see some best practices or tutorial videos about Ext Designer. Can't wait to get some help

  6. #6
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    We're doing a lot of work in the ref area and will come out with recommendations with it when finalized.

  7. #7
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Quote Originally Posted by ExtKD View Post
    Thanks for info. Dreaming of 'auto-ref'...
    'autoRef' has been implemented for xds-1.0.0.5. Any component which is put in a Container will get the Designer configuration autoRef. The autoRef is a plain string without worries of using "../../" etc

    autoRef will generate a correct ref path to place your ref configuration on the top level component.

    For example if you have a Button within a ButtonGroup within a ToolBar within a Panel, typically you would have to manually calculate the number of "../"'s that you need to place it on the top level class. (For example '../../myBtn').

    We would use the autoRef configuration 'myBtn'.

    autoRef allows you to add or remove additional levels of nesting within your hierarchy with ease and while calculating the correct ref configuration.
    Aaron Conran
    @aconran

  8. #8
    Ext User
    Join Date
    Mar 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default new version

    thank you guys. can't wait to see 1.0.0.5 ...

Posting Permissions

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