Emadello / cordova-plugin-CDVNavBar

Add NavigationBar to your Cordova applications
5 stars 7 forks source link

Question regarding IOS11 #2

Open yochyG opened 5 years ago

yochyG commented 5 years ago

I'm trying to use the plugin, I can't get the drawer icon to show and also the drawer doesn't extend all the way to the bottom of the screen. Can you maybe guide me? See code below. Simulator Screen Shot - iPhone Xs - 2019-08-25 at 07 57 02 Simulator Screen Shot - iPhone Xs - 2019-08-25 at 08 00 45

`navbar.create();

        navbar.setupRightButton("", 'barButton:Refresh', function() {
            alert('test')
        });
        navbar.setupLeftButton("", 'barButton:Action', null);

        navbar.showRightButton();
        navbar.showLeftButton();
        navbar.settitle("My Dashboard");
        navbar.setBGhex("#3e8a47"); // NavBar BG Color (You can set it as 'transparent')
        navbar.setTitlehex("#000000"); // Title Color (will be deprecated, use setTitleAttr instead)
        navbar.setTitleAttr("#FFFFFF","Helvetica-Bold","16.0"); // If you want a custom font, you need to add it to xcode
        navbar.setButtonshex("#CCCCCC"); // Buttons Color
        navbar.show();

        var draweritems = [];
        draweritems.push(["Page1","index.html","icon.png", "im the badge"]);
        draweritems.push(["Page2","index2.html","", "no badge"]);
        draweritems.push(["Page3","index3.html","", null]);
        navbar.setupDrawer(draweritems, "#ffffff");`
Emadello commented 4 years ago

Hello,

Apologies for the late reply, I will check and fix and release an update