I have something like this:
And on a separate js file:
I want to know if there is any way to pass a parameter to foo through the click event in bind-data.
<
div
id
=
"view1"
data-role
=
"view"
data-model
=
"viewModel"
data-title
=
"view1"
>
<
ul
id
=
"listview"
data-bind
=
"source: dataSource, click: foo"
data-role
=
"listview"
data-template
=
"template"
></
ul
>
</
div
>
<
script
type
=
"text/x-kendo-template"
id
=
"template"
>
<
a
>${link}</
a
>
</
script
>
And on a separate js file:
var
viewModel = kendo.observable ({
foo:
function
(parameter) {
//use parameter
}
});
I want to know if there is any way to pass a parameter to foo through the click event in bind-data.