Jump to content

Set Plugins to any uniGUI component


gm3h
 Share

Recommended Posts

I'm trying to set a 'plugins' from ExtJS for TuniEdit for example.

I have tried many method but without success....

But, if it is 'extension' or 'override', I've done it successfully....

 

For example, I try to set the plugins for TuniEdit like this: http://www.sencha.com/forum/showthread.php?77984-Field-help-text-plugin

and also this: http://www.sencha.com/forum/showthread.php?125958-Simple-Field-Access-plugin-Lock-Unlock-to-restrict-or-allow-input-data

All failed...

Can somebody help me work it out???

Thanks before..

Link to comment
Share on other sites

function OnBeforeInit(sender)
{
 sender.plugins=[  new Ext.ux.FieldHelp("Some help text") ];
}

 

Just want to report, here's what I got:

 

1. The plugins initialize correctly now. (Thanks for the 'OnBeforeInit')

 

2. But, there's a bit problem with the result.

Here's the result:

 

a. Output from browser:post-298-0-59922700-1322911230_thumb.jpg

b. Capture from design time: post-298-0-04768000-1322911258_thumb.jpg

c. Here's what I got from Chrome Inspect: post-298-0-21490100-1322911275_thumb.jpg

 

 

Can somebody suggest me what to do? Thanks before..

Link to comment
Share on other sites

Perhaps this plugin assumes that Ext.Form has its layout property set to form, while uniGUI uses an absolute layout.

 

Well, after working around with the plugins, I finally manage to make it work properly.

No, it's not about the 'layout of the form' problem, but the 'wrap' problem.

When you create a 'wrap' for a component, the resulted 'div' do not copy the 'style object' of the wrapped component.

So, I have to modified the plugins to add this 'style object' i.e. the top,left,width config,

from the wrapped component to the resulted wrap object.

 

Anyway, thanks Farshad for your advise.

I'll post this modified plugins after I test it thoroughly in this forum if somebody wants to use it.

Cheers and Thanks for your great uniGUI, I love it very much and really unpatiently waiting for the next upgrade.

 

Btw, here's the result now: :D

 

post-298-0-62263900-1322946197_thumb.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...