rikschennink / cordova-tabbar

Native iOS TabBar for Cordova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cordova iOS TabBar

Native iOS TabBar for Cordova

Currently in development

Methods

The following methods are exposed on window.plugins.TabBar.

Setup TabBar

/*
    options: {
        tintDefault:[255,0,0,.5], // not implemented yet
        tintSelected:[255,0,0,.5],
    }
*/
setup(options)

Add Tab to TabBar

/*
    id:         unique id
    title:      title to show beneath tab
    icon:       icon (without extension, should be png, also @2x is auto added)
    callback:   function executed when user taps the tab
*/
addTab(id,title,icon,callback);

Reset TabBar

reset()

Select Tab

/*
    id: id of tab to set to selected state
*/
selectTab(id)

About

Native iOS TabBar for Cordova


Languages

Language:Objective-C 73.9%Language:JavaScript 26.1%