1.0.0 • Published 7 years ago

com.imobicloud.keyboardtoolbar v1.0.0

Weekly downloads
-
License
Public Domain
Repository
github
Last release
7 years ago

Titanium UI - Keyboard toolbar

Keyboard toolbar can be used for message box in chat apps

Textarea example

====

View

<Widget id="toolbar" src="com.imobicloud.keyboardtoolbar" onToggle="toolbarToggle">
	<Widget src="com.imobicloud.textarea" class="txt-message" maxHeight="100" hintText="Type your message" onResize="toolbarResize"/>
    	<Button class="button-send">SEND</Button>
</Widget>

Styles

".txt-message": { height: Ti.UI.SIZE, top: 12, bottom: 12, left: 10, right: 75.5, backgroundColor: '#fff', borderRadius: 15 }			

Controller

$.toolbar.init( window_view );   // call this function on first load

$.toolbar.unload(); // call this function when window blurred
$.toolbar.init( window_view ); // call this function when window focussed

function toolbarToggle(e) {

$.lv.bottom = e.height + 56; }

function toolbarResize(e) {

$.lv.bottom = e.height + 56 + 12 + 12; }

Changes log:

1.0.0

7 years ago