Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (keyboard)
Viewing all articles
Browse latest Browse all 352

Alloy - Attach keyboardToolBar to textfield in the traditional way not work

$
0
0

Add keyboardToolbar does not work whereas setHint works perfectly.

Any idea why?

main.xml

.....
...
..
<Require type="view" src="search_bar" id="req_tf"/>
......
....
..
Attach the tool bar
/*
 * Not functional 
 *
/ 
$.req_tf.getView("field").setKeyboardToolBar([Titanium.UI.createButton({
    title : 'Done',
    style : Titanium.UI.iPhone.SystemButtonStyle.DONE,
}), Titanium.UI.createButton({
    systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE
}), Titanium.UI.createButton({
    systemButton : Titanium.UI.iPhone.SystemButton.CANCEL
})]);
 
 
/*
 *  Code below works fine
 *
/ 
$.req_tf.getView("field").setHintText("This is a lovely day");

Viewing all articles
Browse latest Browse all 352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>