hamasyou / tisignview

Titanium Alloy SignView widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Titanium Alloy 用の サインを手書きでかけるようにする View Widget です。

SS

Usage

Copy the widgets folder in app/widgets folder of your project.

View

app/views/index.xml

<Alloy>
  <Window>
    <Widget src="jp.co.mountposition.signview" onChange="signChange" />
  </Window>
</Alloy>

Controller

app/controllers/index.js

function signChange(e) {
  var imageView = Ti.UI.createImageView({image: e.data});
  $.index.add(imageView);
}

config.json

Add dependencies of app/config.json

{
    "global": {},
    "env:development": {},
    "env:test": {},
    "env:production": {},
    "os:ios": {},
    "os:android": {},
    "dependencies": {
        "jp.co.mountposition.signview": "1.0"
    }
}

License

Written by @hamasyou Copyright © 2013 MountPosition Inc. Licensed under the [MIT License][MIT] [MIT]: http://www.opensource.org/licenses/mit-license.php

About

Titanium Alloy SignView widget

License:Other


Languages

Language:JavaScript 94.9%Language:Python 3.4%Language:CSS 1.7%