[ 
https://issues.apache.org/jira/browse/ISIS-1944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16467386#comment-16467386
 ] 

Andi Huber commented on ISIS-1944:
----------------------------------

Demo of TreeNode creation and programmatic node expansion (not showing the 
MyTreeAdapter class).
{code:java}
@ViewModel
public static class RootNode {
  public String title() {
    return "Hello World";
  }
}

@Action 
public TreeNode<Object> tree() {
  val root = new RootNode();
  val tree = TreeNode.lazy(root, MyTreeAdapter.class);
  tree.expand(TreePath.of(0), TreePath.of(0, 0));
  return tree;
}
{code}

> Tree View: allow programmatic expand/collapse of tree-nodes
> -----------------------------------------------------------
>
>                 Key: ISIS-1944
>                 URL: https://issues.apache.org/jira/browse/ISIS-1944
>             Project: Isis
>          Issue Type: Improvement
>          Components: Core: Viewer: Wicket
>            Reporter: Andi Huber
>            Assignee: Andi Huber
>            Priority: Major
>             Fix For: 2.0.0-M2
>
>
> By now expand/collapse is only available via user interaction.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to