Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rename macro 'p' to 'mgnl-p'.

...

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

browser

 

workbench

 

contentViews

 

tree

 

list

 

columns

 

mgnl-p
class

info.magnolia.ui.workbench.list.ListPresenterDefinition

thumbnail

 

search

 

mgnl-p
dropConstraintClass

info.magnolia.contacts.app.main.tree.ContactDropConstraint

mgnl-p
editable

false

Properties:

  • contentViews: Defines the views how the content is displayed.
    • <content view name>: The available views are treelistthumbnail and search.
      • columns: Column definitions for tree, list and search views. You don't need to define columns for the thumbnail view.
      • class: A presenter class that displays the content in a tree, list, thumbnail or search view. The options are 
        Javadoc
        0info.magnolia.ui.workbench.tree.TreePresenterDefinition
        Javadoc
        0info.magnolia.ui.workbench.list.ListPresenterDefinition
        Javadoc
        0info.magnolia.ui.workbench.thumbnail.ThumbnailPresenterDefinition
         and 
        Javadoc
        0info.magnolia.ui.workbench.search.SearchPresenterDefinition
        . Use the fully-qualified class name. If you write your own presenter, look at the 
        Javadoc
        0info.magnolia.ui.workbench.definition.ConfiguredContentPresenterDefinition
         which implements the 
        Javadoc
        0info.magnolia.ui.workbench.definition.ContentPresenterDefinition
         interface.
      • viewType: Element of the 
        Javadoc
        0info.magnolia.ui.workbench.ContentView.ViewType
         enumeration: TREE, LIST, THUMBNAIL or SEARCH. You only need this property when you write your own view presenter.
      • implementationClass: In a workbench, the implementation class responsible for creating, configuring and updating the view. Typically a default implementation class is already hard-coded in the definition class. You only need to add this property if you want to override the default implementation with your own.

      • icon: CSS class that identifies an icon used on the view tab. For available names see Icons.
      • active: Defines whether the view is active. Default is true.
  • dropConstraintClass: Drag and drop constraint class. By restricting the nodes that a user can move you can enforce a hierarchy. For example, you might want to allow moving of content nodes under folders but not under other content nodes. If the class is not defined, the tree view will have no drag and drop capability. When you write your own class, implement the 
    Javadoc
    0info.magnolia.ui.workbench.tree.drop.DropConstraint
     interface.
  • editable: Makes the data displayed in the workbench editable inline. When the user double-clicks the cell it becomes an editable field.

...

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

browser

 

workbench

 

nodeTypes

 

contact

 

mgnl-p
icon

icon-user-public

mgnl-p
name

mgnl:contact

folder

 

mgnl-p
icon

icon-folder-l

mgnl-p
name

mgnl:folder

contentViews

 

tree

 

list

 

columns

 

mgnl-p
class

info.magnolia.ui.workbench.list.ListPresenterDefinition

thumbnail

 

search

 

mgnl-p
defaultOrder

jcrName

mgnl-p
dropConstraintClass

info.magnolia.contacts.app.main.tree.ContactDropConstraint

mgnl-p
editable

false

mgnl-p
includeProperties

false

mgnl-p
path

/

mgnl-p
workspace

contacts

Properties:

...