Home

Awesome

WARNING: This widget currently doesn't work since Twitter 1.0 API is deprecated and dependent widgets are out of sync.

TweetsView Widget Titanium Alloy

Overview

The TweetsView widget provides a twitter-like experience in a view designed to fill a window (most likely to be contained by a tab) or a splitview, for Alloy - the new MVC for Titanium by Appcelerator.

Screenshots

List view

List view

Pull to refresh

Pull to refresh

Dynamic Scrolling

Dynamic Scrolling

Detail view

Detail view

Browser view (opening a link in a tweet)

Browser view

Dependencies

Features

Future work

Quick Start

	"dependencies": {
		"nl.fokkezb.tweetsView":"1.0"
	}
<Tab id="tvt" title="My Tweets">
	<Window id="tvw" title="Tweets">
		<Widget src="nl.fokkezb.tweetsView" id="tv" q="my search" />
	</Window>
</Tab>

Optionally use init()

Instead of passing the search query using the q attribute in the view, you can also use the widget's init() method. This allows you to also specify a callback, tab or navigation group to open the tweets or browserview in.

$.tv.init({
    q: 'my search',
    opener: $.tvt
});

or

$.tv.init({
    q: 'my search',
    opener: function (win) {
      // Bad example: this is the default without using an opener :)
      win.open();
    }
});

Manually caling load()

The widget does not automatically load the tweets on initialization. This is because if you'd use it in a tabgroup, the view will be initialized even if the tab is not the primary tab the user will see. So, you will need to manually trigger the first load by doing something like:

function onOpen() {
	$.tw.off('open', onOpen);
	$.tv.load();
}
$.tw.on('open', onOpen);

Changelog