Jump to content

Unset config property


stas

Recommended Posts

Hello 

How to unset config property

For Example 

procedure TMyContainer.LoadCompleted;

begin

inherited;

JsCode('width:undefined');

end;

 

But in generated  code  a see

O35=new Ext.MyContainer({width:undefined,width:200});

 

Where in my component I write JsCode('width:undefined');

Thank you

 

 

Link to comment
Share on other sites

Why do you want to do something like that ?? you can't "unset" property, even if there is no with the browser will use its' default value for width.

 

**** Our main Problem as developers is: ****

 

We all (or most of us) came from windows programming background and we expect web programming same as windows and here we get ourselves into problems that we can't solve, so I suggest you (myself first) to refer to basic web programming (client/server), html (post,get,update,delte...), css styling, js and so on.

unigui can't resolve any problem that related to understanding how web app is working and we try to do something without even knowing the consequences of this.

 

 

Anyway this is a CSS property and when changing width/height... you can override extjs main class, or just create a new class and set any thing you want, for example if you want to change a label/container/panel... width you may use this code:

 

1. At servermodule-->customcss:

.mylabel
{
 width: 100px !important;//you have to use the !important otherwise it wont work
 width: 50% !important;//other way to use width
}

2. in label or any component-->extevents-->added (event):

function added(sender, container, pos, eOpts)
{
  sender.addCls('mylabel');
}
  • Upvote 1
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...