custom control webix

How to created repeated control in webix. I have 10 posts with same structure (author, date, post_text) i need to create something to use it like this for(let i=0; i< post.length; i++) { webix.ui ({ view:"postControl", data: post[i].data })

Comments

  • edited May 26

    Hi @Roma,
    Please check the following snippet:
    https://snippet.webix.com/hb80xnm0
    Please note that, every reusable config you need to wrap in webix.copy (even better to do it for the first time when you use config to avoid the conflict). Webix modifies the config when you use it at first time, so the next time of using this config is changed.

  • Thanks this is exactly what I'm looking for!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion