Announcement

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

    Change background color on DateItems

    Hi,

    I want change the background color of a DateItem (useTextField=true). On TextItems it worked with the Parameter “textBoxStyle”, but how can I achieve the same effect on DateItems?

    Regards
    Chris

    #2
    Hi Chris
    We've just added support for this. As of the next nightly build, you'll see a new API dateItem.setTextFieldProperties(TextItem itemProperties). This will allow you to customize the appearance of the text box for the date item - for example:
    Code:
    		  DynamicForm testForm = new DynamicForm();
    		  DateItem date = new DateItem();
    		  date.setName("date");
    		  date.setUseTextField(true);
    		  TextItem tfps = new TextItem();
    		  tfps.setTextBoxStyle("cellOver");
    		  date.setTextFieldProperties(tfps);
    		  
    		  testForm.setItems(date);

    Comment


      #3
      I have Similar problem but i have many items in Dynamic form..
      Example here shows dynamic form with one field and
      testForm.setItems(date); sets the date item only and resolve the other values

      Comment

      Working...
      X