Is there any concept of extending a component and then inheriting from it to create further components.
I want to standardise the structure of my site by having Logo, menubar, toolbar etc in set places and then re-use that as a template for all my pages. Is that possible? If there is and if I make a change to the template then will it automatically update pages that have already been made using that template?
Thanks in advance
Our components have “object api” init, for example:
dhtmlx.com/docs/products/dht … i_ext.html
docs.dhtmlx.com/doku.php?id=dhtm … t_notation
So, you may create different templates with different rules.
I understand what you are saying but I want to be able to use the same template from many different web pages in my site. Under your example I can create multiple instances of the template within ONE web page. What is the best method of doing this across multiple web pages.
Should I define my template layout in a separate file and then use :
in each file where I want to use the template?
Is this the best way of doing it or is there a better method.
Thanks in advance for your help.
You can create a separate js file, in which describe all logic of layout init and content attaching - after that just including those js file on any page will trigger the same layout initialization.
solution with server side includes can be used as well.
Basically there are many ways to implement such use-case, there is no single preferred solution.
Thanks for that. To include a js file should I use:
like everything else?