Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    227
    Vote Rating
    1
    alphadogg is on a distinguished road

      0  

    Question There's no xtype for a link (anchor)?!?

    There's no xtype for a link (anchor)?!?


    Okay, so we built a FormPanel with a the following items:

    Code:
    var formLogin = new Ext.FormPanel({
        labelWidth: 75,
        url: '/user/login',
        standardSubmit: true,
        frame: true,
        bodyStyle: 'padding:10px',
        layout: 'form',
        border: false,
        defaults: {
            xtype: 'textfield'
        },
        items: [
            {
                fieldLabel: 'User Name',
                id: 'userName'
            },
            {
                fieldLabel: 'Password',
                id: 'password',
                inputType: 'password',
                listeners: {
                    specialkey: function(field, e) {
                        if (e.getKey() == e.ENTER) {
                            var form = field.ownerCt.getForm();
                            form.submit();
                        }
                    }
                }
            },
            {
                xtype: 'label',
                fieldLabel: '<a href="#">Label</a>',
                listeners: {
                    render: function(c) {
                        var label = c.getEl().up('.x-form-item').child('.x-form-item-label');
                        label.dom.htmlFor = '';
                        var a = label.child('a');
                        a.on('click', function() {
                            Ext.Msg.alert('Alert', 'Anchor clicked');
                        }, c, { stopEvent: true });
                    }
                }
            }
        ],
        buttonAlign: 'center',
        buttons: [
            {
                text: 'Login',
                handler: function() {
                    formLogin.getForm().submit();
                }
            }
        ]
    });
    
    var formContainer = new Ext.Panel({
        layout: 'hbox',
        title: 'Welcome to MyForcura',
        headerCfg: { cls: 'cpop-home-index-headerCenter' },
        border: false,
        bodyStyle: 'padding:20px;',
        layoutConfig: {
            align: 'top',
            pack: 'center'
        },
        items: [
            formLogin
        ]
    });
    I want to add a simple "Forgot Password?" link. Either in the FormPanel, or maybe below it.

    But, it seems there is no Component for a link? Or, did I miss it somehow? I futzing with the Ext.form.Label, based on the code I saw from Condor in this forum using Checkbox, but it seems a little over the top, and somehow adds a ":" character to anything in fieldLabel.

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2010
    Posts
    227
    Vote Rating
    1
    alphadogg is on a distinguished road

      0  

    Default


    Sorry. Wrong forum. This should be in the ExtJS forums.

Similar Threads

  1. Replies: 6
    Last Post: 8 Apr 2010, 4:44 PM
  2. Position Anchor Layout (anchor your component's position and size to their container)
    By tiago.silva in forum Ext 2.x: User Extensions and Plugins
    Replies: 1
    Last Post: 12 Jan 2009, 7:29 PM
  3. xtype:editorgrid in xtype:tabpanel
    By extjs_new in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 7 Jan 2009, 9:40 PM
  4. TabPanel activate IE7 error --- Anchor name link FF2 scrolls whole page
    By millenovecento in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 31 Jul 2008, 5:37 PM
  5. xtype:'textarea', to xtype:'htmleditor' problem
    By putty in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 Jul 2008, 11:11 PM

Tags for this Thread