CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

DXE2+IW14.0.32+CG2.1.0.3701 - TIWCGPanelListItem.PaddingLeft

by ScottWGast » 25 Jun 2014 21:12

With 14.0.28, I was able to set the TIWCGJQPanelListItem.PaddingLeft property in order to move the .Caption over a bit when the item was clicked. Is that property gone now?

Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 25 Jun 2014 22:38

Hi Scott

Yes it was removed, i don't know why right now, but i presume it's because, the same html can be achieved setting by adding the 'padding-left' to the Item.ItemStyle.

2.1.0.3574

CGPanelList
- Removed: PaddingLeft property
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Alexander Bulei » 26 Jun 2014 09:45

Hi ScottWGast,

As my colleague said, PaddingLeft property has been removed due to create confusion with padding Item.
Now, the padding of caption is calculated automatically, having regard to the image size.

was able to set the TIWCGJQPanelListItem.PaddingLeft property in order to move the .Caption over a bit when the item was clicked.


If you need this behavior, you should do it with css.

Example:

delphi code
procedure TIWForm10.IWCGPanelList1IWCGPanelListItems2Click(Sender: TObject; AParams: TStringList);
var
PLItem: TIWCGPanelListItem;
begin
PLItem:= Sender as TIWCGPanelListItem;
PLItem.ItemCss:= 'panellist-nav-item-li my-pl-item-visited';
end;


css code
.my-pl-item-visited .cgdev-pl-span-text {
padding-left: 40px;
}


Note: Ajax changing support is added in V2.1.0.3702

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to CGPanelList

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.