Markup and Angular Questions.

Hi Guys,

I’m currently evaluating Webix for a commercial application and have a few questions / possible bugs.

  1. In markup I cannot see a way to set a function for a template for example in a datatable I want one of the cells to loop an array and render a template for each object. How would I do this with markup? Is it possible?

  2. In angular adding a badge property to a button doesn’t seem to work neither does align?

  3. Is the angular markup way a good way to go with Webix? Are there any examples of using Webix purely within the controller with data binding still working?

Many thanks.

(1) When initializing from HTML you can use only simple templates ( placeholders ) without iteration ability. It possible to enable support of Handlebar templates, that are support all types of data operations. Still it is not very convenient.

When initializing from js code you can use a custom function for template, so any kind of templating logic is possible. ( in case of AngularJS integration you can use js initialization as well )

(2) Works for me
http://webix.com/snippet/f8bfb072

(3) From my personal experience, js configuration works much better. I have created few simple apps with pure HTML configuration and that was much more verbose and complicated than js based configurations.

Also, while Webix can be initialized from HTML markup it doesn’t support all kinds of HTML binding as may be expected from Angular’s directive ( it will not track for HTML changes for example ). So if you have some experience with Angular, working with HTML init can be rather confusing.

Hi Maksim,

Thanks for that, I think I’m going to see how well angular data binding plays with webix defined in JS.

All in all I’m quite impressed with Webix it’s very lightweight and I like it’s simplicity.