Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TimeItem: Possibility to hide SelectItem titles?

    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 Files

    #2
    There are showHourItem, showMinuteItem etc properties you can set.

    Comment


      #3
      Thank you, but that is not what I'm looking for. I know that you can set those properties to hide SelectItems for hour, minute etc.

      My problem is that I want to show SelectItems for hour and minute, but I do NOT want those SelectItems to have the titles "Hour" and "Min" above them.

      Comment

      Working...
      X