Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

TimeItem: Possibility to hide SelectItem titles?

$
0
0
Hi,

I'm using a TimeItem with two SelectItems for hour and minute:

Code:

TimeItem start = new TimeItem("start");
start.setUseTextField(false);
start.setShowSecondItem(false);

Now I'm wondering whether it's possible to completely hide the SelectItem titles for the hour and minute item (which are "Hour" and "Min" by default)?

I tried the following alternatives:

Code:

SelectItem itemProps = new SelectItem();
itemProps.setShowTitle(false);
start.setHourItemProperties(itemProps);
start.setMinuteItemProperties(itemProps);

--> No effect at all


Code:

start.setHourItemTitle(null);
start.setMinuteItemTitle(null);

--> No titles are displayed, however, the SelectItems are not vertically aligned with the TimeItems title; there's some free space above them (see attached Screenshot).



Do you have any other suggestions?

Thank you very much for your help.


SmartGWT Power 4.0,
v9.0p_2013-07-09/PowerEdition Deployment

Attached Images
File Type: jpg timeitem.jpg (7.3 KB)

Viewing all articles
Browse latest Browse all 4756

Latest Images

Trending Articles



Latest Images