Code Monkey home page Code Monkey logo

imobicloud.com.imobicloud.textarea's Introduction

Titanium UI - Resizable Textarea

Resizable Textarea can be used for message box in chat apps

Textarea example

====

View

<Widget src="com.imobicloud.textarea" class="imc-textarea" maxHeight="100" onResize="txtMessageResize">
	<Label role="hint" class="imc-textarea-hint" platform="ios">Type your message</Label>
	<TextArea role="textarea" class="imc-textarea-textarea" hintText="Type your message"/>
</Widget>

Styles

".imc-textarea": { height: Ti.UI.SIZE, bottom: 5, left: 5, right: 5 }
	".imc-textarea-hint": { top: 7, left: 5, font: { fontSize: 12.5, fontFamily: 'HelveticaNeue-Medium' }, color: '#b7b7b7', touchEnabled: false, visible: true }
	".imc-textarea-textarea": { width: '100%', height: Ti.UI.SIZE, font: { fontSize: 12.5, fontFamily: 'HelveticaNeue-Medium' }, color: '#b7b7b7', backgroundColor: 'transparent', suppressReturn: false }

Controller

function txtMessageResize(e){
	alert(e.height);
}

Issues

  • use [setValue] to update new value for TextArea, do not use [TextArea.value = new value;]

Changes log:

November 2, 2015

  • Add back change event

2015

  • Remove change event

  • Remove updateUI function

  • Remove blur function

  • Remove getValue + setValue function

  • Remove hintText property + setHintText function

  • Rename classnames: ET-xx to imc-xx

imobicloud.com.imobicloud.textarea's People

Watchers

Brenton House avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.