var list_ctx = app.DisplayList.add_ctx(p.id);
define("/js/common/components/hako/lib/items/show_info1/hv/show_info1.hv.js", function () {
var create = function () {
return function (hv) {
var tmpl = app.tmpl.find("tmpl_show_info1", p.cc);
hv.n = "show_info1";
hv.set_tmpl = function (item) {
hv.tmpl = hv.mint(tmpl, {info:"my Info", email : "my email", website : "webby", website_txt:"Howdy!"})
};
hv.actions = {
};
hv.on_change = function (item, changed, render) {
// if (app.utils.hasAMatch(changed, ["title"])) {
render(item, true);
// }
};
return hv;
};
};
return create;
});
list_ctx.add(hv_map);
var hv_info = {
path: "some_path",
$el: pvs.$hv_info,
t: "show_info1",
item: {}
};
list_ctx.add(hv_info);
var cover = vm_local.show().cover;
list_ctx.add({
path: get_base_path()+"cover",
t: "cover",
item: app.utils.copy(app.gpv(vm_local.show, "cover")), /*remove path from item*/
$el: p.$hv_cover,
on_ready: function () {
},
pre_render: function (h) {
return h;
},
append: function () {
debugger;
//take control of how it is attached etc
}
});
list_ctx.add_actions({
some_action : function(o){}
});