Search Type: Posts; User: ax123man

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    977
    it was easy:

    <menu>
    <items>
    <button text="A button" />
    <string>-</string>
    <button text="Another button" />
  2. Replies
    3
    Views
    977
    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.
  3. Replies
    3
    Views
    977
    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',...
  4. that works, sort of. I have your new Ext.override and...

    Ext.override(Ext.Button, {
    constructor: Ext.Button.prototype.constructor.createInterceptor(function(config){
    ...
  5. I tried something like what was in that post, which the post indicates didn't work for Ext.grid.ColumnModel, but that isn't a problem for me. And for the sake of testing, I tried this:

    ...
  6. found this post:
    http://www.extjs.com/forum/showthread.php?t=12181


    so I tried this:

    Ext.interceptConstructor = function(c, f) {
    var r = function(){
    f.apply(this, arguments);
    ...
  7. any ideas at all?! Does my code at least look like it should work? Anything would be helpful.

    Thx!
  8. I also tried this:

    Ext.override(Ext.Component, {
    constructor: Ext.Component.prototype.constructor.createInterceptor(function(config){
    config = mte.UI.getMergedConfig(config);
    })...
  9. anyone?
    The other issue is that I wanted to also do this trick on a TextField but the overridden constructor is not called. I then tried to override Ext.Component since I really need to do this to...
  10. I'm trying to merge some custom config for all menu items like so:

    Ext.override(Ext.menu.BaseItem, {
    constructor: function(config) {
    config = mystuff.getMergedConfig(config);
    ...
Results 1 to 10 of 10