Table of Contents

Static Load

import mycom_js   from "/modules/coms/mycom/mycom.js";
import mycom_html from "/modules/coms/mycom/mycom.html"
import mycom_css  from "/modules/coms/mycom/mycom.css";
// Register with the framework
cvm.init_com("mycom", mycom_js, mycom_html, mycom_css);

Dynamic Rendering

// The 3rd param is CSS selector string, or element object
var to_append = true; // or false

// Data_Obj is stored in controller as 'this.Data'
// and in template as 'this'
cvm.render_com("mycom", Data_Obj, Selector_Or_Parent, to_append);