Remove NavbarItem from navbar

You must Login before you can answer or comment on any questions.

Hey,

i have a delete button on my navbar, and i want it to dispear when the table is only 1 item long.

I tried to do edit.hide(); but that doesnt seem to work.

Does anyone know the best way to remove a navbaritem onces its been added?

Thanks

-Tom

1 Answer

Accepted Answer

Hi,

win.leftNavButton = null; ??

— answered 3 years ago by Richie Mortimer
answer permalink
2 Comments
  • There is a short flicker before the button disappears. How can I remove the button on load? So that it is gone directly on load?

    — commented 2 years ago by James -

  • Where does this belong in the documentation?

    In the table row? e.g. "to show in the left nav bar area. only available in iPhone. To remove use win.leftNavButton = null;"

    Or, in the Code Examples section?

    — commented 2 years ago by Andy Weber

Your Answer

Think you can help? Login to answer this question!