Dynamically add value to template view?

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

Tagged:

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!