Answer the question
In order to leave comments, you need to log in
How to put a function in a balloon template?
var Custom = ymaps.templateLayoutFactory.createClass(
'<div>' +
'<a href="tel:{{properties.phone}}">{{properties.phone}}</a>' + +
'</div>'
);
Answer the question
In order to leave comments, you need to log in
var Custom = ymaps.templateLayoutFactory.createClass(
'<div>' +
'<a href="tel:' + properties.phone + '">' + properties.phone +'</a>' +
'</div>'
);
var Custom = ymaps.templateLayoutFactory.createClass(
'<div>' +
`<a href="tel:${properties.phone}">${properties.phone}</a>` +
'</div>'
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question