If you haven’t already read Part 1 of this mini blog series then I recommend you do before reading any further, but if you’re fairly confident with the basics of plugins then you can probably manage alright!
Quick Recap
In the first post we learnt the basic structure of a plugin is that it extends the basic JavaScript Object class and must at least contain a single function called “init” which takes one parameter that is a reference to the parent component that the plugin is used in. We also learnt that the init method is called when the parent component is initialised but before it is rendered.
You can read the full HOW TO: Create a Sencha Touch Plugin – Part 1 post here.
(more…)
What is a Plugin and why create one?
A plugin is a class that adds functionality/features to a parent component by adding or modifying its behaviour and/or look after its instatiation. By creating a plugin you can reuse it and apply its behaviour to any number of components without duplicating code and effort. To use a plugin in a component you simple instantiate it in the component’s ‘plugin‘ config option. An example of a plugin might be one which adds a help icon after each form field providing the user with help text on how to fill it in. If you didn’t create a plugin for it you would be required to manually code it for each form field which would be cumbersome and time consuming. So, hopefully I’ve convinced you of the merits of creating plugins to allow maximum code reuse and to make your lift a whole lot easier! Now how do we actually create one…?
(more…)
Plugin Overview
This plugin can be applied to panels to give a simple and flexible way of adding action buttons to a panel. It could be used as a simple close button or as the submit button on a form.
Although very simple we hope it might be of use to someone else who is looking for an alternative way of performing actions on floating panels.
(more…)
In October, developers were invited to submit applications created using Sencha Touch. Three weeks later, a judging panel of Sencha community members and employees selected 10 finalists from the more than 200 entries coming from across the globe.
SwarmOnline’s Prop.erti.es app was chosen as one of the 10 finalists in the Sencha Touch Mobile App contest, out of over 200 entries coming from developers all over the world, as Sencha launched the brand new Mobile Application Development Framework.
(more…)