• Home
  • Features
  • Pricing
  • Contact
  • Account
  • Home
  • Features
  • Pricing
  • Contact
  • Account
Home/Knowledge Base/Special Customisations/How to Dynamically Change the Items of Bottom Navigation Bar

How to Dynamically Change the Items of Bottom Navigation Bar

21 views 0

Written by Ferdousur Rahman
May 30, 2025

In some cases, you might want to change the bottom navigation bar items dynamically depending on the user’s action or state — such as switching between “Login” and “Logout” when a user logs in or out.

Appilix allows you to achieve this from your website code (displayed inside the app) by calling a simple JavaScript function.

🧪 Syntax

let titles = "Home<=>Search<=>Profile";
let icons = "e88a<=>e8b6<=>e853"; // Material Icon Unicode
let actions = "https://example.com<=>https://example.com/search<=>https://example.com/profile";

bottomNavUpdateItems(titles, icons, actions);

 

🔍 Parameters

Name Description
titles The names to show in the bottom navigation. Separate them using <=>
icons Unicode of Material Icons (Get from: https://fonts.google.com/icons)
actions URL to load when that nav item is clicked. Separate using <=>

✅ Use Case Example

Let’s say:

  • When a user is logged out, you want the bottom nav item to show Login.

  • When the user is logged in, it should be replaced by Logout.

You can control that dynamically using JavaScript.

if (userIsLoggedIn) {
    bottomNavUpdateItems(
        "Home<=>Profile<=>Logout",
        "e88a<=>e853<=>e9ba",
        "https://example.com/home<=>https://example.com/profile<=>https://example.com/logout"
    );
} else {
    bottomNavUpdateItems(
        "Home<=>Profile<=>Login",
        "e88a<=>e853<=>e890",
        "https://example.com/home<=>https://example.com/profile<=>https://example.com/login"
    );
}

Was this helpful?

Yes  No
Related Articles
  • How to set user information to identify user for sending push notification to specific user
  • How to Force App Users to Update Their App to the Latest Version
  • How to add a custom Back Button to go to the previous page?
  • How to show only icons in the Bottom Nav Bar?
  • How to display Dropdown Menus in Navigation Drawer

Didn't find your answer? Contact Us

Leave A Comment Cancel reply

How to set user information to identify user for sending push notification to specific user  


Appilix
About
  • Contact Us

  • Privacy Policy

  • Refund Policy

  • Terms & Conditions

Discover
  • FAQs

  • Plans & Pricing

  • Changelogs

Resources
  • Web to App

Connect With Us

© 2024 Appilix. All Rights Reserved

  • Privacy Policy

  • Terms & Conditions