Require id attribute in divs of layout HTML

I have a question concerning layouts.

I want to use the webix layout classes to improve an existing application.

The problem I have is that the existing application relies a lot on the id attribute of the div tags of the layout HTML and, as far as I can see, the HTML generated by the webix layout classes do not place an id attribute in the generated div tags. If I specify an id in the webix configuration this appears as a view_id attribute in the generated divs.

So my question is is there any way to get an id attribute in the HTML generated by the webix layout classes.

BTW I found a fix up for this issue.

Running the javascript:
$(‘div[view_id]’).each(function() { $(this).attr(‘id’, $(this).attr(‘view_id’)) })

grabs each div with a view_id attribute and assigns an id attribute with the same value.

I’m just wondering if there’s a better way to get div id’s into the layout html generated by webix.

Regards,
Jim.

you can try to redefine layout view
https://snippet.webix.com/l10i8m6y