Announcement

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

    Text field in RibbonGroup

    Hi Isomorphic. Is there a way to add a text-type field to a RibbonGroup? All the examples and discussions I've read here in the forums talk mainly about adding IconButton and IconMenuButton, but I need to have a text field that the user can type into in order to perform an action...

    Thanks!

    #2
    You should be able to create a DynamicForm with items and apply it with ribbonGroup.addControl().

    Comment


      #3
      Thank you so much. It worked perfectly:

      Code:
      RibbonGroup saveRunGroup = new RibbonGroup();
      saveRunGroup.setTitle("Results");
      saveRunGroup.setNumRows(3);  
      saveRunGroup.setRowHeight(26); 
      DynamicForm form = new DynamicForm();
      TextItem runName = new TextItem();
      runName.setTitle("Run Name");
      runName.setTitleOrientation(TitleOrientation.TOP);
      form.setItems(runName);
      saveRunGroup.addControl(form);

      Comment

      Working...
      X