1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    49
    Vote Rating
    7
    TonySteele is on a distinguished road

      0  

    Default Can't use your own vtypes on form fields.

    Can't use your own vtypes on form fields.


    On form fields the VType drop down should allow you specify your own Ext.form.field.VTypes.

    Since there is no method to set the VType (I think its only configurable) I have to create the whole form field and add it to the form in the render event.

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,190
    Vote Rating
    76
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    You can add your edit field as top level view, create an override to set your custom vtype then use that component in your other views:

    Code:
    Ext.define('MyApp.view.override.MyTextField', {
        requires: 'MyApp.view.MyTextField'
    }, function() {
        Ext.override(MyApp.view.MyTextField, {
            vtype : "your-vtype"
        });
    });

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar