Announcement

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

    DynamicForm, remove border

    How is it possible to remove border with title or make it invisible?
    Code:
    DynamicForm form = new DynamicForm();
    form.setIsGroup(true);
    form.setFields(....);
    Gennadiy

    #2
    Try DynamicForm.setAttribute(groupBorderCSS, "0", true);

    Comment


      #3
      Originally posted by svjard
      Try DynamicForm.setAttribute(groupBorderCSS, "0", true);
      setAttribute(...) is protected function. When I can't to call it.
      Code:
      DynamicForm form = new DynamicForm();
      form.setAttribute("groupBorderCSS", "0", true); // error
      form.setIsGroup(true);
      form.setFields(....);
      How can I set the attribute? How do I know all the names of the attributes? Are there any general rules for working with attributes (naming, functions, etc.)?

      Comment


        #4
        Right sorry I should have been more clear, derive your own class,
        Code:
        public class MyDynamicForm extends DynamicForm {
            	public MyDynamicForm() {
            		this.setAttribute("groupBorderCSS", "0", true);
            	}
            };
        Most attributes are exposed through get/set methods, but not all, either with reason or just still getting to the point. But the vast majority are, you are the only person so far to ask about this specific attribute. You can of course find all the attributes by looking in the SmartClient source code.

        Comment

        Working...
        X