Results 1 to 2 of 2

Thread: proxyConfig question

  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,378
    Answers
    20
    Vote Rating
    720
      -2  

    Default proxyConfig question

    I'm trying to understand how proxy configs work, which is an interesting feature.

    In this example, the deselectable config is proxied form the selectable mixin, but I don't see that the selectable mixin contains this config, so how does this work?
    Code:
    Ext.define('Ext.dataview.Abstract', {
        ...
        proxyConfig: {
            selectable: {
                configs: [
                    'mode',
                    'deselectable', // <--- where is this config defined?
                    'lastSelected',
                    'selected'
                ],
                methods: [
                    'isSelected',
                    'select',
                    'selectAll',
                    'deselectAll',
                    'getSelections',
                    'hasSelection',
                    'getSelectionCount'
                ]
            }
        },
        ...
    I'm an Ext JS contractor. Hire me in the Chicago area!

  2. #2
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    2,378
    Answers
    20
    Vote Rating
    720
      -1  

    Default

    Another question: why container is not required by containerfield?

    I'd think it should be required since its configs and methods are proxied
    Code:
    Ext.define('Ext.field.Container', {
        extend: 'Ext.field.Field',
        ...
    
    
        config: {
            /**
             * @cfg {Ext.Container} container
             * The configuration of the container used to maintain child items.
             */
            container: {
                xtype: 'container',
                autoSize: null,
                defaultType: 'textfield',
                defaults: {
                    errorTarget: 'parent'
                },
                layout: {
                    type: 'hbox'
                }
            }
        },
    
    
        proxyConfig: {
            container: {
                configs: [
                ...
                ...
    I'm an Ext JS contractor. Hire me in the Chicago area!

Similar Threads

  1. What is proxyConfig for?
    By Podlipensky in forum Sencha Touch 2.x: Discussion
    Replies: 2
    Last Post: 12 Mar 2012, 2:41 PM
  2. css question and open window question
    By TobyJustus in forum Ext Designer: Help & Discussion
    Replies: 1
    Last Post: 27 Oct 2011, 11:15 AM
  3. a little question
    By andryi in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 16 Nov 2009, 8:05 AM
  4. Img src tag question
    By archmisha in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 25 Oct 2008, 1:08 PM
  5. API Question
    By JoomlaMan in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 11 Apr 2008, 6:16 AM

Posting Permissions

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