DHTMLX Touch documentation

Content View

Content view is a ui-related class inherited from view. The addition of this class is possibility to add complex content.
It's similar to template view.The difference between them is that template view lets to add simple data (you can set them by single string) and with content view you can add really complex content: pictures, data arrays, whole components etc.


Full code of the example in the picture.

Initialization

To init the component you need to perform a simple procedure - call initialization code.

Initialization code or an object constructor gives you a choice: you can create an object directly or by using common declaration.

dhx.ui.content_view({...})// direct declaration
//or
dhx.ui ({...})//common declaration

Parameters

Whatever variant you choose it will include some of the following parameters:

  • content - id or node, whose content will be moved to the view

Please note, content view is a derived class, i.e. it inherits all the features of the base classes (content view → view).

dhx.ui({ 
        rows:[ 
		{ 	content: "myContent",
                        height:300
		},
        ...
        ]
});

Related how-tos