Hi, How to add a value dynamically on button click?
below is my code.
rows: [
{
id:“tempId”,
view: “template”,
template: “#title#”
data: PosterDescData
}
I am calling below code on button click.
$$(“tempId”).add({
title:“ABC”
});
error: TypeError: Cannot read property ‘add’ of undefined