1. #1
    Ext User
    Join Date
    Oct 2009
    Posts
    10
    Vote Rating
    0
    ax123man is on a distinguished road

      0  

    Default menuseparator config

    menuseparator config


    I'm having problems creating a menu separator in a menu using config. It didn't look like Ext had an xtype registered for this so I did this:

    Ext.ComponentMgr.registerType('menuseparator', Ext.menu.Separator);


    but it doesn't look like ext respects xtypes when creating menu items. What's the best way to work around this?

  2. #2
    Sencha User carol.ext's Avatar
    Join Date
    Jun 2007
    Location
    Littleton, Colorado, USA
    Posts
    667
    Vote Rating
    18
    carol.ext will become famous soon enough carol.ext will become famous soon enough

      0  

    Default


    I don't think 2.x supports menu xtypes. Does "-" not do what you need?

    Adds a separator bar to a menu, used to divide logical groups of menu items. Generally you will add one of these by using "-" in you call to add() or in your items config rather than creating one directly.

  3. #3
    Ext User
    Join Date
    Oct 2009
    Posts
    10
    Vote Rating
    0
    ax123man is on a distinguished road

      0  

    Default


    maybe, but my config objects are created via DWR from objects created via xtream & xml. So they are java classes with properties, not simple strings.

  4. #4
    Ext User
    Join Date
    Oct 2009
    Posts
    10
    Vote Rating
    0
    ax123man is on a distinguished road

      0  

    Default [solved] menuseparator config

    [solved] menuseparator config


    it was easy:

    <menu>
    <items>
    <button text="A button" />
    <string>-</string>
    <button text="Another button" />

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