Class ModelNodeListView<T extends ModelNode>

  • All Implemented Interfaces:
    Iterable<elemental2.dom.HTMLElement>, Attachable, Display<T>

    public class ModelNodeListView<T extends ModelNode>
    extends Object
    implements Display<T>, Iterable<elemental2.dom.HTMLElement>, Attachable
    A list view for model nodes with a toolbar, pager and empty states. Actions are filtered according to their constraints.

    Please note that the ModelNodeListView uses its own <div class="row"/> element. This is important if you add the toolbar using the methods from LayoutBuilder

    • Method Detail

      • setSurroundingHeight

        public void setSurroundingHeight​(int surroundingHeight)
        Use this method if you embed the list view into an application view and if you have additional elements before or after the list view. This method should be called before the list view is attached.
        Parameters:
        surroundingHeight - the sum of the height of all surrounding elements
      • showEmptyState

        public void showEmptyState​(String name)