Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14842] MobileWeb: Index Bar for TableView

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-06-29T18:48:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsalphabet, index, tableview
ReporterMatej
AssigneeChris Barber
Created2013-08-10T09:46:44.000+0000
Updated2018-04-04T23:20:37.000+0000

Description

Index Bar for MobileWeb - Same as iOS.
 
var win = Titanium.UI.createWindow();
 
var data = [
    {title:'Alan (click to change index)', header:'A'},
    {title:'Alice' },
    {title:'Alexander'},
    {title:'Amos'},
    {title:'Alonzo'},
    {title:'Brad', header:'B'},
    {title:'Brent'},
    {title:'Billy'},
    {title:'Brenda'},
    {title:'Callie', header:'C'},
    {title:'Cassie'},
    {title:'Chris'},
    {title:'Cameron'},
    {title:'Don', header:'D'},
    {title:'Dilbert'},
    {title:'Deacon'},
    {title:'Devin'},
    {title:'Darin'},
    {title:'Darcy'},
    {title:'Erin', header:'E'},
    {title:'Erica'},
    {title:'Elvin'},
    {title:'Edrick'},
    {title:'Frank', header:'F'},
    {title:'Fred'},
    {title:'Fran'},
    {title:'Felicity'},
    {title:'George', header:'G'},
    {title:'Gina'},
    {title:'Gary'},
    {title:'Herbert', header:'H'},
    {title:'Henry'},
    {title:'Harold'},
    {title:'Ignatius', header:'I'},
    {title:'Irving'},
    {title:'Ivan'},
    {title:'Dr. J', header:'J'},
    {title:'Jefferson'},
    {title:'Jenkins'},
    {title:'Judy'},
    {title:'Julie'},
    {title:'Kristy', header:'K'},
    {title:'Krusty the Clown'},
    {title:'Klaus'},
    {title:'Larry', header:'L'},
    {title:'Leon'},
    {title:'Lucy'},
    {title:'Ludwig'},
    {title:'Mary', header:'M'},
    {title:'Mervin'},
    {title:'Malcom'},
    {title:'Mellon'},
    {title:'Ned', header:'N'},
    {title:'Nervous Eddie'},
    {title:'Nelson'},
    {title:'The Big O', header:'O'},
    {title:'Orlando'},
    {title:'Ox'},
    {title:'Pluto', header:'P'},
    {title:'Paris'},
    {title:'Potsie'}
];
 
var tableview = Titanium.UI.createTableView({ data:data });
 
var index = [
    {title:'A',index:0},
    {title:'B',index:5},
    {title:'C',index:9},
    {title:'D',index:13},
    {title:'E',index:19},
    {title:'F',index:23},
    {title:'G',index:27},
    {title:'H'},
    {title:'I',index:33},
    {title:'J',index:36},
    {title:'K',index:41},
    {title:'L',index:44},
    {title:'M',index:48},
    {title:'N',index:52},
    {title:'O',index:55},
    {title:'P',index:(data.length -1)}
];
 
tableview.index = index;
win.add(tableview);
win.open();

Comments

  1. Lee Morris 2017-06-29

    Resolving as "Won't Fix" as MobileWeb has been deprecated.
  2. Eric Merriman 2018-04-04

    Closing as will not fix.

JSON Source