Results 1 to 10 of 13

Thread: Custom VType in MVC style?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    71
    Vote Rating
    3
      0  

    Default Custom VType in MVC style?

    Hello,

    I've been working on porting my app to v4 and have run into a simple issue that I can't seem to figure out how to properly implement. I wanted to create a custom vtype (any new vtype for that matter) and can't seem to figure out where I'm actually supposed to place the vtype creation code? In the View file? app.js? Any simple sample or direction would be extremely helpful. Thanks!

    Zane

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    24
    Vote Rating
    -1
      0  

    Default

    Have you looked here yet?
    http://docs.sencha.com/ext-js/4-0/#/...m.field.VTypes

    Also if it's just a vtype, it probably is going to be used across (possibly) multiple files correct? You probably could define it in app.js for now, then move it to a type file at a later point that will be loaded separately?
    Maybe include it before(?) bootstap.js?

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    71
    Vote Rating
    3
      0  

    Default

    I did look there but while it shows the 'normal' way of loading it in, it doesn't say where to put it when using the MVC style architecture. I'll stick it in app.js and figure out how to get it to work from there. If anybody has any other suggestions I'm more than welcome to try something different. Thanks.

  4. #4
    Sencha Premium Member
    Join Date
    Apr 2011
    Posts
    60
    Vote Rating
    3
      0  

    Default

    Hi softwarezman,

    How did this work out? I am using MVC and also am looking into creating a custom VType.

    thank you - Randy

  5. #5
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    71
    Vote Rating
    3
      0  

    Default

    I've had to leave it in app.js for the moment as I had to move on to other aspects of the application unfortunately. I'm sure there has to be a better way, I just can't spend the time on a 'simple' VType anymore.

  6. #6
    Sencha User
    Join Date
    Jul 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Where in app.js are you declaring the custom VType? Anywhere I try to put it, I get Ext.form is undefined...

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
  •