Titanium provides method associated table view which can be used to append row at the bottom of any table view. Here with the below video, I am going to describe you the way to append rows at the bottom of a table view.
Summary: From the above video we have learned the way to append row at the bottom of any table view with Alloy using Titanium.
We generally use table view API in titanium to display data in row manner but there might be a scenario where we need to take care about the number of rows. So here I will be describing different ways to count number of rows and sections present in table view.
Sometime we might get data from some external API or any other source that needs to be bind with a table where we are unaware about the number of rows that are present in the API response. So let’s create a situation for a table view where we will get the number of rows and section defined for those rows using Alloy with Titanium. Lets have a window where we will have a table view with some static rows.
So in order to do so lets, take a view called index.xml and its controller called index.js.
Generally we use table-view to display data in different rows with table format in an application and adding search functionality on those table data is very common. So let me demonstrate the ways to search data among the table rows.
To display data in row format Titanium provides API called Table-View. So lets use table-view to display data on screen and then will add search functionality. Suppose we have a window called home where we will have our table.
Introduction : Its a very common functionality or requirement to display data in rows format. In order to do so Titanium provides API like ‘TableView’ which can be used to make table format with different rows. Below is a description on how to use the table view with Alloy in Titanium. Alloy supports the most popular design pattern i.e. MVC, which generally have model, view and controller structures. We will follow the same pattern in Titanium.
Description : Using Alloy, we will have a view which will hold all the UI components to be displayed on screen and will have a controller for this corresponding view. Currently we will not go for building any model as we don’t need it.