Page 1 of 1

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

PostPosted: 25 Jun 2014 21:12
by ScottWGast
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

Re: DXE2+IW14.0.32+CG2.1.0.3701 - TIWCGPanelListItem.Padding

PostPosted: 25 Jun 2014 22:38
by Jorge Sousa
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

Re: DXE2+IW14.0.32+CG2.1.0.3701 - TIWCGPanelListItem.Padding

PostPosted: 26 Jun 2014 09:45
by Alexander Bulei
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.