Jump to content

How to assing JS code in a TUnimPanel runtime created for ClientEvents->UniEvents->beforeinit ?


Israel Portillo

Recommended Posts

8 hours ago, Israel Portillo said:

HI group

I have a design panel with a ClientEvents->UniEvents->beforeinit JS code as:

function beforeInit(sender, config)
{
   config.cls = "myrow";
}

 

How can I assign the same property in a runtime created panel ?

Thanks for your help.

Hi,

I use this when create button at runtime:

MyButton.ClientEvents.ExtEvents.Values['beforeInit'] := 'function beforeInit (sender, config) {sender.listeners = {initialize: function(editor) {var styles = {"word-wrap": "break-word"};Ext.DomHelper.applyStyles(editor.getEditorBody(), styles);}}}';
 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...