4 ms·
Can you actually add buttons to the top bar, though? When I was making an HTML5/Native hybrid app with Titanium I came up against that a lot - when you're not u
by untog 15y ago
Can you actually add buttons to the top bar, though? When I was making an HTML5/Native hybrid app with Titanium I came up against that a lot - when you're not using iOS native TabbedGroups (or whatever they were called) even getting a simple back button was incredibly difficult.
- amirnathoo 15y agoYes, there's a JS API forge.topbar.addButton for example: http://docs.trigger.io/en/v1.3/modules/topbar.html#addbutton http://docs.trigger.io/en/v1.3/modules/topbar.html#addbutton Easiest to just specify text and use the standard button appearance, but you can also choose a specific image. You assign a callback function for when it's clicked.
- untog 15y agoCan you get it to animate the way that native views do when going back and forward (the title text moving and fading horizontally, etc.)? It's a small thing but I kept noticing it. I ended up making an iOS-style header bar in HTML, though I'll openly admit that it's not the greatest solution.