Getting started with Kranium.js – a brilliant framework for Titanium Mobile

At Codestrong, the first official conference for Titanium Mobile developers in SF a few weeks ago, fellow swede Jacob Waller presented his latest project – one awesome app framework built on the previous success of Livetanium and web techniques like Sizzle, Backbone.js and Jasmine. Here’s a short introduction to the concept to get you started.

Custom action methods in a few simple steps

Adamantium.js was built with the intention of giving each developer power to easily extend the framework with custom action methods to process the matched set. In this short guide we’ll cover the basics of this, while creating a method that replaces a defined string in any Label with another string.

Use custom element types to get more out of the type selector

In version 0.2, a system for states, much like CSS classes, will be fully supported. But until then, if we want to simplify selection subsets of similar elements, creating a custom element type is a quick and simple way to give us this ability.

Create a basic model with Titanium Mobile

In a previous post, we went over the basics of working with data in a SQLite database. This time we are going to create a model for interaction with a table called ideas, with object methods for all the basic CRUD operations. In a later post, we’ll be coding a controller and some views that connect to this model, making it a full, single-feature app.

Module based development with Titanium Mobile

One of the best ways to write your code is to slice it up into chunks that are easy to manage and easy to move from project to project, with little or no refactoring. In object oriented programming, this is a basic principle as you keep each class in it’s own file. This is also true when using the MVC programming pattern, where you keep your models, views and controllers in separate files.

Basic CRUD operations in Titanium Mobile

CRUD is short for create, read/retrieve, update and delete/destroy and refers to the four basic functions of persistent storage, like a database in a mobile device. Titanium Mobile supports these functions using the Titanium.Database top-level module and in this post we will look at how it all works.