ui.counter into dataview

Hi all,
i would like to put an ui.counter into a dataview widget, how can I do it?

Thanks

Hello @codejoin ,
T solve the issue it’s possible to use a template property to create complex HTML objects. For example, you can add something similar to ui.counter inside a DataView using a template.
Please take a look at the snippet:
https://snippet.webix.com/11pvpiax

Thank you.
Too hard.
Is it possible to create a proto ui layout with a dataview and a counter in it?

Hello @codejoin,

Is it possible to create a proto ui layout with a dataview and a counter in it?

Unfortunately, it is not possible to embed Webix views within other Webix views (unless you are trying to put a Webix view inside of a layout-based view, of course), so you cannot really put a counter widget inside of a dataview (dataview is purely a data widget, and not a layout-based widget). The solution mentioned by my colleague is the correct approach in this case - creating a counter-like template within the dataview is the only feasible way of having similar functionality.

As an alternative, you could also try out the datalayout widget, which is basically both a data widget and a layout-based widget at the same time: Code Snippet.

Thanks for the answer,
but there is a misunderstanding due to my bad English, I meant I wanted to create a proto.ui layout with a dataview and a counter in the layout.
I know that I cannot embed a counter in a dataview.