The NavBar API supports a native navigation bar for iOS devices.
This API is part of the coreapi
extension that is included automatically.
extensions: ["coreapi"]
Be sure to review the JavaScript API Usage guide for important information about using this API in JavaScript.
Be sure to review the Ruby API Usage guide for important information about using this API in Ruby.
Removes the current NavBar and replaces it with this one.
Parameters
HASH with NavBar elements.
Left button with :action and :label defined.
Label for the button.
URL to call when button is pressed.It may be path to Ruby controller action; i.e. ‘/app/Account’ would load the Account index action. For ruby callback use ‘callback:/app/Account’ Or javascript method to call: ‘javascript: methodOnButton();’.
(optional) Right button with :action and :label defined.
Label for the button.
URL to call when button is pressed.It may be path to Ruby controller action; i.e. ‘/app/Account’ would load the Account index action. For ruby callback use ‘callback:/app/Account’ Or javascript method to call: ‘javascript: methodOnButton();’.
Title of the navigation bar.
Synchronous Return:
Method Access:
Rho.Navbar.create(HASH navBarProperties)
Rho::Navbar.create(HASH navBarProperties)
Removes the current navigation bar. Does nothing if there is no active navigation bar.
Synchronous Return:
Method Access:
Rho.Navbar.remove()
Rho::Navbar.remove()
Return true is navbar is started (used only for automatic tests)
Synchronous Return:
Method Access:
Rho.Navbar.started()
Rho::Navbar.started()