This module uses the attributed label code as available in Nimbuskit. It supports singletouch and tapandhold events on attributes.
- Run
build.py
which creates your distribution - cd to
~/Library/Application Support/Titanium
- copy this zip file into the folder of your Titanium SDK
Register your module with your application by editing tiapp.xml
and adding your module.
Example:
<modules>
<module>nimbus.label</module>
</modules>
When you run your project, the compiler will know automatically compile in your module dependencies and copy appropriate image assets into the application.
To use the module in code, all you will need to do is require it.
var nimbuslabel = require('nimbus.label');
<Label ns="NimbusLabel" bindId="text"/>
See example app.js for details.