M
M
Marat Nagayev2018-03-28 15:32:06
JavaScript
Marat Nagayev, 2018-03-28 15:32:06

Why is the TextField not showing up?

I need to use JS to create a TextField
for a Nativescript app.
My code:
var tf= new TextField();
tf.id="test";
var model= new Observable();
var options={
sourceProperty:"text",
targetProperty:"text"
};
model.set("text","test");
tf.bind(options, model);

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question