Jump to content

How to remove the unimEdit's border( top,left,right) ?


Recommended Posts

unimEditborder.jpg

my css code: 

.EDT_login{
  border-style: none none groove none;
  border-width: 1px;
  border-color: #3EC4ED;  
  #box-shadow: 0px 1px 3px #BEE2F9;
  background-image: none;  
}

Link to post
Share on other sites

set EDT_login to unimEdit1.LayoutConfig.Cls property

put your css code in file program.exe\files\css\custommob.css

and then load css-file in mainmodule:

 

procedure TUniMainModule.LoadScriptCSS;
begin
  if upMobile in UniMainModule.UniPlatforms then
    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custommob.css")');


//if upDesktop in UniMainModule.UniPlatforms then
//    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custom.css")');
end;


// BeforeLogin or in MainModuleCreate
procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean);
begin
  LoadScriptCSS;
...
...
end;

 

Link to post
Share on other sites
On 10/13/2020 at 4:14 PM, x11 said:

set EDT_login to unimEdit1.LayoutConfig.Cls property

put your css code in file program.exe\files\css\custommob.css

and then load css-file in mainmodule:

 


procedure TUniMainModule.LoadScriptCSS;
begin
  if upMobile in UniMainModule.UniPlatforms then
    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custommob.css")');


//if upDesktop in UniMainModule.UniPlatforms then
//    UniSession.AddJS('Ext.Loader.loadScript("/files/css/custom.css")');
end;


// BeforeLogin or in MainModuleCreate
procedure TUniMainModule.UniGUIMainModuleBeforeLogin(Sender: TObject; var Handled: Boolean);
begin
  LoadScriptCSS;
...
...
end;

 

My code is error;

The unimEdit's border is still exist;

Could you tell me How to Remove the Left、Top and Right border?

 

Link to post
Share on other sites
×
×
  • Create New...