1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
    Oxii is on a distinguished road

      0  

    Default How to add plugins ??

    How to add plugins ??


    here is my map initialization :

    Code:
    Ext.define('App.Map', {        
    extend: 'GeoExt.panel.Map',        
    alias: 'widget.themap',        
    initComponent: function () {           
    var me = this;            
    Ext.apply(me, {               
     map: map,           
     });        
    me.callParent(arguments);    }});

    then add map to mapPanel:

    Code:
    Ext.getCmp('mapPanel').add({requires: ['App.Map'], items: [{xtype: 'themap'  }] });
    now I want to use the extent polygon here in this example:http://geoext.github.com/geoext2/exa...nt-extent.html
    on my mapPanel, not generating a new one.
    I am not sure how/where I have to add the plugin property ??

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,912
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    For example .. on the grid you would call the plugin like:

    Code:
        var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
            clicksToMoveEditor: 1,
            autoCancel: false
        });
    
        Ext.create('Ext.grid.Panel', {
            title: 'Simpsons',
            store: store,
            columns: [
                { header: 'Name',  dataIndex: 'name', editor: { xtype: 'customPicker' } },
                { header: 'Email', dataIndex: 'email', flex: 1, editor: editor },
                { header: 'Change', dataIndex: 'change', editor: editor }
            ],
            height: 200,
            width: 400,
            renderTo: Ext.getBody(),
    
            plugins: [rowEditing]
        });
    Scott.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi