1. Can you get it to work with a simple list item, not using a function?
2. Is it a layout/display? Try setting the minHeight of your list, to make sure it is not a list size issue. Eg. minHeight:'200px' in the config for the list.

- Check you don't have syntax errors (Eg. why does your function doplStatus have curly braces around?)
- In template functions 'this' refers to some scope deep within the list item, so something like 'this.get('mode')' and 'this.get('f3');' makes no sense. You pass the model data into the function & reference that data inside the function. So in this function you would access the property: value.f3

To get things to work you need to understand what each step is doing. Get a small simple example working first to make sure you understand what is going on & then build up from there.

Here is an outline of how the template definition works and how functions get referenced:

Code:

itemTpl: [
'<div>{propName1}, {[someFunction1(values.propName2)]}, {[someFunction2(values)]}</div><!-- This is your list html, it might use a model property such as {propName1}, or might call a function passing a specific model property like {[someFunction1(values.propName2)]}, or might call a function passing all the model's data like {[someFunction2(values)]}--->',
someFunction1(property) {
// In this function you passed through a specific model property (in the html you invoke the function: someFunction1(values.propName2)
return property;
},
someFunction2(modelData) {
// you can have many functions in the template, separated by a comma.
// In this function you passed through the full model data (in the html you invoke the function: someFunction2(values). In a list item template, 'values' is equivalent to a model's model.getData() value). So accessing a property in a function where you passed 'values' as an argument will be done like: modelData.propName3
return modelData.propName3;
}
]

Oh my god ... I do not know what to do ... how difficult it is to be brand new in this business ... Tried what you suggest but nothing is impossible ... Can tell me again that I'm not doing this right or give an example .

In fact I want to make a function which provided that the "mode" " f2 " , " f3 " when a certain value bet a certain picture . for example mode = cp and f2 = 0 and f3 = 2 is a picture if there is no match then the other .... that's about what I want to get with this function .... and do not understand how this can be done. For clarity, we give himself JS and model programs .