Git Product home page Git Product logo

navigation-bar's Introduction


Navigation Bar

@hugotomazi/capacitor-navigation-bar

Capacitor plugin for Navigation Bar manipulation.



Donate with PayPal button


Maintainers

Maintainer GitHub Social
Hugo Tomazi hugotomazi @hugotomazi

Install

npm install @hugotomazi/capacitor-navigation-bar
npx cap sync

Configuration

No configuration required for this plugin.

API

show()

show() => Promise<void>

Display the navigation bar.


hide()

hide() => Promise<void>

Hide the navigation bar.


setColor(...)

setColor(options: ColorParameters) => Promise<void>

Change the color of the navigation bar. *Support alpha hexadecimal numbers.

Param Type
options ColorParameters

setTransparency(...)

setTransparency(options: { isTransparent: boolean; }) => Promise<void>

Set the Transparency

Param Type
options { isTransparent: boolean; }

getColor()

getColor() => Promise<{ color: string; }>

Gets the current color of the navigation bar in Hexadecimal.

Returns: Promise<{ color: string; }>


addListener(NavigationBarPluginEvents.SHOW, ...)

addListener(event: NavigationBarPluginEvents.SHOW, listenerFunc: () => void) => PluginListenerHandle

Event fired after navigation bar is displayed

Param Type Description
event NavigationBarPluginEvents.SHOW The event
listenerFunc () => void Callback

Returns: PluginListenerHandle


addListener(NavigationBarPluginEvents.HIDE, ...)

addListener(event: NavigationBarPluginEvents.HIDE, listenerFunc: () => void) => PluginListenerHandle

Event fired after navigation bar is hidden

Param Type Description
event NavigationBarPluginEvents.HIDE The event
listenerFunc () => void Callback

Returns: PluginListenerHandle


addListener(NavigationBarPluginEvents.COLOR_CHANGE, ...)

addListener(event: NavigationBarPluginEvents.COLOR_CHANGE, listenerFunc: (returnObject: { color: string; }) => void) => PluginListenerHandle

Event fired after navigation bar color is changed

Param Type Description
event NavigationBarPluginEvents.COLOR_CHANGE The event
listenerFunc (returnObject: { color: string; }) => void Callback

Returns: PluginListenerHandle


Interfaces

ColorParameters

Prop Type Description
color string Sets the new color of the navigation bar.
darkButtons boolean Sets whether the default navigation bar buttons should be black or white.

PluginListenerHandle

Prop Type
remove () => Promise<void>

Enums

NavigationBarPluginEvents

Members Value Description
SHOW 'onShow' Called after the navigation bar is displayed
HIDE 'onHide' Called after navigation bar is hidden
COLOR_CHANGE 'onColorChange' Called after navigation bar color is changed

navigation-bar's People

Contributors

hugotomazi avatar eliasws avatar ersumanta avatar rpsoftechadmin avatar keyurboss avatar mauricewegner avatar feinzer avatar sabereen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.