1. #11
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    @Condor:

    Sorry, you said "Support menu" which I interpreted as "Commercial Support menu." I didn't notice the top-most parent, but I agree now that I look at it that it should probably be highlighted too.

  2. #12
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    > The screenshot shows a 3 level menu: Support > Help Forums > Radio Caption 4.

    Actually that top level is not a menu. There is no menubar component (as stated in the orginal post). What is in the screenshot is a 2 level menu triggered by a MenuButton on a Toolbar. Since the MenuButton was created before there was a Menu currently it just has a handler for when the arrow part is clicked (and in that handler I am showing the menu). It actually make sense to make it "Menu Aware" since there is actually built-in Menu support now.

    @Luc - Yes. In fact, as I get time, many of the components in Ext are going to get some default context menus (like the grid headers).

    @concept - The ribbon bar is hideous and there is no plan to create one. As for tabs, there's already a TabPanel component.

    @Animal - Menus from existing markup will be supported. In fact some other components as well are getting a new static function "fromMarkup" or "readMarkup" to generate them from markup. e.g.

    var menu = Ext.menu.Menu.fromMarkup('my-menu');

  3. #13
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Cool. It will be easier to generate nested markup in Java on the server, and go from there.

    Will the menu items all have to have <A> elements like the YUI ones? Will it be easy to specify an onclick from markup, or will a known menu item have to be retrieved, and an onclick handler programatically added?

    Come of our menu items are links, some call javascript functions. (Although even for links, I hook the onclick anyway, stop propagation, and load the href into a ContentPanel)

  4. #14
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default


    Jack has anyone ever told you that you are the man?? becuase if they they should.

  5. #15
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    The screenshot was updated - the Ext.Toolbar.MenuButton is now aware of it's menu (it can take a 'menu' config option) and stays highlighted while the menu is visible.

  6. #16
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Man, that took you an entire hour to fix? You're slacking on us

  7. #17
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    @Animal - Yeah the default version will require A elements. To attach custom onclick handlers, you will have to look the item up and add it manually. However, since the markup reading is not actually part of the component, you will be free to edit it and make it parse whatever structure (or inline onclick handlers) you want.

  8. #18
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    Brian, I am getting slow and senile in my old age....

  9. #19
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,483
    Vote Rating
    35
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Quote Originally Posted by jacksloc
    @Animal - Yeah the default version will require A elements. To attach custom onclick handlers, you will have to look the item up and add it manually. However, since the markup reading is not actually part of the component, you will be free to edit it and make it parse whatever structure (or inline onclick handlers) you want.
    OK, as long as they can be looked up... I had to extend YUI's Menu system to add that capability so that menu items created from markup could be looked up and be postconfigured: have handlers added!

  10. #20
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    16
    jack.slocum will become famous soon enough

      0  

    Default


    All menu register themselves with the MenuMgr. The menu items are a MixedCollection and can be accessed by id or index. So...

    var menu = Ext.menu.MenuMgr.get('menu-id');
    menu.items.get('item-id').on('click', ... );

    Icons are a little different than YUI as well. They can either be done with a CSS class:

    Code:
    // menu item config
    {text: 'Forum Menu Item', cls: 'forums'.... 
    
    // css
    .forums .ext-menu-item-icon {
    	background-image: url(/deploy/yui-ext.0.40-alpha/docs/resources/forum.gif);
    }
    or in the config directly (easier, but css is preferred):
    Code:
    // menu item config
    {text: 'Forum Menu Item', icon: '/deploy/yui-ext.0.40-alpha/docs/resources/forum.gif' ....

Similar Threads

  1. about toolbar with menus?
    By franklt69 in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 17 Jan 2008, 8:13 AM
  2. Create Toolbar and Menus from markup?
    By Saeven in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 5 Jun 2007, 4:29 AM
  3. Jack's Screenshots
    By Webnet in forum Community Discussion
    Replies: 2
    Last Post: 28 Feb 2007, 9:55 AM
  4. Error with implementing toolbar menus [SOLVED]
    By Jamie Avins in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 22 Feb 2007, 8:36 AM
  5. How do you use yui-ext? Post your screenshots
    By Skeleton in forum Community Discussion
    Replies: 16
    Last Post: 22 Feb 2007, 1:11 AM

Thread Participants: 14

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