1.1.8 • Published 5 years ago

mynav v1.1.8

Weekly downloads
2
License
MIT
Repository
-
Last release
5 years ago

Deutsche Beschreibung ist unten!

Video deutsch

1. What is myNav?

The library mynav provides the possibility to create a complete vertical navbar (menu) with a one object. From the individual entries of the menu, a corresponding function is called directly after clicking.

see example below:

Bild1 Picture 1: For Example

2. Installation Guide

If you just want to take a look at the library mynav, go straight to the point 2.1.1

  1. First install nodejs
  2. Create a package.json file in your working directory! npm init -y or npm init
  3. Install the package mynav npm i mynav

2.1 integrate

There are several ways to include mynav in your code.

2.1.1 For testing purposes, without performing the installation listed in Chapter 2

Create an HTML file index.html and write the following lines in the head tag:

...
<head>
    <script src="https://cdn.jsdelivr.net/npm/mynav@1.0.18/mynav.js"></script>
</head>
...

Include the tag mynav (<mynav> </ mynav>) in the body-tag and create a script with the following content, which you can insert below in body-tag or enter in a separate script:

...
<body>
    <mynav></mynav>
    <script>
	new MyNavEntryPoint.MyNavBar()
    </script>
</body> 
...	    

Start your website! If you did everything right, it should look like this: Bild2 Picture 2: example jsfiddle.net github

2.1.2 Local Installation

Perform the installation as in 2. Installation Guide described. Create an HTML file index.html and write the following lines in the head tag:

...
<head>
  ... 
  <script  src="node_modules/mynav/mynav.js"></script>
  ...
</head>   
...

Include the tag mynav (<mynav></ mynav>) in the body-tag and create a script with the following content, which you can insert below in body-tag or enter in a separate script:

...
<body>
    <mynav></mynav>
    <script>
	    const mynav = new MyNavEntryPoint.MyNavBar();
    </script>
</body> 
...	    

Start your website! If you did everything right, it should look like Picture 2. Examplel github

2.1.3 Webpack 4 installation

Please visit the following link gitub

3. Configuration

When calling the constructor function, you can pass an object as an argument and thus initialize the entire navigation. In the program flow, each individual property (for example, background, font family, menu items, etc.) can be changed later. If you pass the constructor function no Object argument, the following default object works:

{  
     items: 
     [  
        [  
            { item: 'Item 1'},  
            { item: 'Item 1 1', func: () => {console.log('Item 1 1')}},  
            { item: '--'},  
            { item: 'Item 1 2', func: () => {console.log('Item 1 2')}}  
        ],  
        { item: 'Item 2', func: () => {console.log('Item 2')}}  
    ],  
    trigger: 'click',  
    popupWidth:'150px',  
    fontFamily: 'monospace, sans-serif',  
    fontSize: '18px',  
    position: 'absolute',  
    top: '0',  
    offsetXpx: '0',  
    offsetYpx: '0',  
    navWidth: '90%',  
    navHeight: '50px',  
    color: 'white',  
    background: 'black',  
    colorHover:'white',
    backgroundHover: 'gray', 
    colorActive: 'white', 
    backgroundActive: 'blue',  
    colorDisabled: 'gray',
    backgroundDisabled: 'black',
    borderColor: 'gray', 
    border: true, 
    logoImage: '',  
    logoText: '<div style="font-weight: bold; font-size: x-large">LOGO</div>',  
    buttonText: 'login',  
    buttonVisible: true,  
    buttonFunction: () => {console.log('button pressed') },  
    searchButtonText: 'search',  
    searchButtonFunction: (inputValue) => {console.log('This is my text:', inputValue) },  
    searchVisible: true 
}  

3.1 Items

All navigation and control is described in the property items of the object.
The property items consists of an array, which consists of objects or other arrays (submenus). The topmost array describes the top horizontal menu structure. Here, each entry consists of an object, which is a string property item (menu identifier) and functions property func, which is executed when the menu identifier is clicked.

Example: items

const HomeFunc = function(){window.open( 'https://www.w3schools.com','_blank')}
const ContactFunc = ()=>{document.body.style='margin: 0; background-color: green';                
			 document.getElementById('myID').textContent='Home in Berlin'}             
const MENU = 
{
   items: 
   [ 
    {item: 'w3School', func: HomeFunc},
    {item: 'About', func: ()=>document.getElementById('myID').textContent = 'Exapmle for Item'},
    {item: 'kontakt', func: ContactFunc}
   ]
}
const navbar = new MyNavEntryPoint.MyNavBar(MENU);

Bild3 Picture 3 Example

3.2 Submenues

If a submenu is to be embedded in one place, then another Array is inserted here instead of an object with the property types item and func. Here, the first entry of the Array is the entry point of the submenu and is located in the parent of the submenu. In the first entry, the func property is ignored because this entry represents only the entry point of the submenu. Example: submenues

...
const MENU = {
   items: 
   [
	   {item: 'w3School', func: HomeFunc},
           {item: 'About', func: ()=>h1.textContent = 'Exapmle for Item'},
           [	{item: 'Contact'},  
	           {item:'kontakt Dresden', func:()=>h1.textContent='Büro Dresden'},
	           [    {item:'Contact Berlin' },
	                   {item:'Pankow', func:()=>h1.textContent='Office Berlin Pankow' },
	                   {item:'Treptow', func:()=>h1.textContent='Office Berlin Treptow' },
	                   {item:'Mitte', func:()=>h1.textContent='Office Berlin Mitte' }
	            ]
           ]     
    ]
}
const navbar = new MyNavEntryPoint.MyNavBar(MENU);
...

Bild 4 Picture 4 submenues

3.3 Further properties of the property Items

3.3.1 Separator

By assigning a string '--' {item: '--'} a separator is inserted at this point. Example: Seperator

...
[	{item:'Contact Berlin' },
        {item:'Pankow', func:()=>h1.textContent='Office Berlin Pankow' },
        {item: '--'},
        {item:'Treptow', func:()=>h1.textContent='Office Berlin Treptow' },
        {item:'Mitte', func:()=>h1.textContent='Office Berlin Mitte' }
]
...

Bild 5 Picture 5 Seperator

3.3.2 disabled

If an entry of the menu should not respond. For example, if you expand a submenu or execute the assigned func function, the true property can be assigned to the disabled property. Example: disabled

...
 [	   {item: 'w3School', func: HomeFunc},
           {item: 'About', disabled: true, func: ()=>h1.textContent = 'Exapmle for Item'},
           [	{item: 'Contact'},  
           	{item:'Contakt Dresden', func:()=>h1.textContent='Büro Dresden'},
              [	{item:'Contact Berlin' },
              	{item:'Pankow', func:()=>h1.textContent='Office Berlin Pankow' },
                {item: '--'},
                {item:'Treptow', disabled: true,  func:()=>h1.textContent='Office Berlin Treptow' },
                {item:'Mitte', func:()=>h1.textContent='Office Berlin Mitte' }
              ]
           ]     
 ]
 ...

Bild6 Picture 6 disabled

3.4 Assign and change the configuration in the program run

As in paragraph 3. Configuration mentioned, you can also after calling the constructor methodconst mynav = new MyNavEntryPoint.MyNavBar(MENU); bzw. (webpack)

import { MyNavBar } from 'mynav';
const mynav = new MyNavBar(); 

all Property's changed. To do this, simply access the new constructor-method initialized variable (in the example mynav) and change the named property. Example: changes after initialization

...
const navbar = new MyNavEntryPoint.MyNavBar(MENU);
//Changes after initialization
//eaxample for singlechanges
navbar.background = 'magenta';
const items = navbar.items;
items[1].item = 'About news';
items[1].func=()=>{h1.textContent='About news'};
items[1].disabled = false;
navbar.items = items;
//example for multichanges
navbar.myNavObj={
  color: 'lightblue',
  backgroundHover: 'darkblue',
  searchVisible: false,
  buttonVisible: false,
  logoText: '<h1 style="background:#000; color: blue; padding: 0 5px">myLogo</h1>'
  };

Bild8 Picture 8 changes after initialization

4 Properties at a glance

Scroll to the right to see the example button.

namedefaultValues / UnitDescriptionExamplejsfiddle
items: {item: textValue|array, func: function, disabled: true|false }arraysee section 3.1
trigger:'click''click'call submenu by clickingtrigger: 'click'
'hover'call submenu by hoveringtrigger: 'hover'Example
popupWidth:'150px'pxminimum width of dropdown menus (submenus)popupWidth: '300px'Example
fontFamily:'monospace, sans-serif'alle font-family'sfont familyfontFamily:' "Times New Roman", Times, serif'Example
fontSize:'18px'em, px, % Units CSS-font-sizefont sizefontSize:'2em'Example
position:'absolute''absolute''fixed''sticky''relative''static'Positional behavior as described in CSS3. Can be used in conjunction with the top property - except static (has no effect).position:'sticky'position:'fixed'Example
top:'0px'pxupper distancetop: '20px'Example
offsetXpx:'0px'pxleft relative distance of the dropdown menuoffsetXpx:'-20px'Example
offsetYpx:'0px'pxupper relative distance of the dropdown menuoffsetXpx:'10px'Example
navWidth:'90%'px, %Centered width of the displayed elements of the horizontal NavBarnavWidth: 700pxnavWidth: 80%Example
navHeight:'50px'pxHeight of the menu itemsnavHeight: '40px'Example
color:'white'colorfont Colorcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
background:'black'colorbackground colorcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
colorHover:'white'colorFont color at hovercolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
backgroundHover:'darkgray'colorBackground color at hovercolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
colorActive:'white'colorFont color Activecolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
backgroundActive:'blue'colorBackground color Activecolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
colorDisabled:'gray'colorFont color in Disabledcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
backgroundDisabled:'black'colorBackground color for Disabledcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
borderColor:'white'colorFrame/Seperator colorcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Example
border:truebooleanFrame visibleborder: falseExample
logoImage:' 'stringSource path and name of the image file (png, jpg ... etc.) If a value is specified here, logoText is ignored!logoImage: '/img/picture.png'Example
logoText:'\LOGO\'string/innerHTMLIgnored when logoImage is specified!logoText: \myLogo\Example
buttonText:'login'stringlabel buttonbuttonText: 'logout'Example
buttonVisible:Truebooleanvisiblity buttonbuttonVisible: falseExample
buttonFunction:() => {console.log('button pressed') }functionFunction that is executed by clicking.buttonFunction: myFunctionExample
searchButtonText:'search'stringlabel buttonsearchButtonText: 'find'Example
searchVisible:TruestringVisibility Input & ButtonsearchVisible: falseExample
searchButtonFunction:(inputValue) => {console.log('This is my text:', inputValue) }functionFunction that is executed by clicking. In InputValue is the search stringsearchButtonFunction: mySearchFunctionExample
myNavObj:aktuelles myNav-ObjectmyNav-ObjectTo easily change multiple propertiesmyNav.myNavObj={color: 'blue', background:'#fff'}Example

Deutsch

1. Was ist myNav?

Die Bibliothek mynav stellt die Möglichkeit bereit, mit einem einzigen Objekt eine komplette vertikale Navbar (Menue) zu erstellen. Aus den einzelnen Einträgen des Menues wird nach dem anklicken direkt eine dazugehörige Funktion aufgerufen.

siehe folgendes Beispiel:

Bild1 Bild 1: Hier gehts zum Beispiel:

2. Installation

Falls Sie nur kurz reinschauen wollen um die Bibliothek mynav zu testen, gehen Sie gleich zu Punkt 2.1.1

  1. Installieren Sie zuerst nodejs
  2. Erstellen Sie eine Datei package.json in ihrem Arbeitsverzeichnis! npm init -y oder npm init
  3. Installieren Sie das package mynav npm i mynav

2.1 Einbinden

Es gibt mehrere möglichkeiten mynav in Ihren Code einzubinden.

2.1.1 Zu Testzwecken, ohne die in Punkt 2 aufgeführte Installation durchzuführen

Erstellen Sie eine HTML-Datei index.html und geben in den head-Tag folgende Zeilen ein:

...
<head>
    <script src="https://cdn.jsdelivr.net/npm/mynav@1.0.18/mynav.js"></script>
</head>
...

binden Sie in den body-tag den Tag mynav (<mynav></mynav>) ein und erstellen ein Script mit folgendem Inhalt, den sie unten im body-tag einfügen oder in einem eigenem Script erfassen:

...
<body>
    <mynav></mynav>
    <script>
	new MyNavEntryPoint.MyNavBar()
    </script>
</body> 
...	    

Starten Sie ihre Webseite! Wenn Sie alles richtig gemacht haben, sollte es so aussehen: Bild2 Bild 2: Beispiel jsfiddle.net github

2.1.2 Lokale Installation

Führen sie die Installtion, wie in Punkt 2. Installation beschrieben durch. Erstellen Sie eine HTML-Datei index.html und geben in den head-Tag folgende Zeilen ein:

...
<head>
  ... 
  <script  src="node_modules/mynav/mynav.js"></script>
  ...
</head>   
...

binden Sie in den body-tag den Tag mynav (<mynav></mynav>) ein und erstellen ein Script mit folgendem Inhalt, den sie unten im body-tag einfügen oder in einem eigenem Script erfassen:

...
<body>
    <mynav></mynav>
    <script>
	    const mynav = new MyNavEntryPoint.MyNavBar();
    </script>
</body> 
...	    

Starten Sie ihre Webseite! Wenn Sie alles richtig gemacht haben, sollte es so aussehen wie auf Bild 2. Beispiel github

2.1.3 Webpack 4 Installation

Besuchen Sie hierzu folgenden Link gitub

3. Konfiguration

Sie können beim Aufruf der Konstruktor-Funktion ein Objekt als Argument übergeben und damit die gesammte Navigation initialisieren. Im Programmablauf, kann jede einzelne Eigenschaft (z.B. Background, Font-Family, Menue-Items etc.) später geändert werden. Wenn Sie der Konstruktorfunktion kein Objekt-Argument übergeben, wirkt das folgende Default-Object:

{  
     items: 
     [  
        [  
            { item: 'Item 1'},  
            { item: 'Item 1 1', func: () => {console.log('Item 1 1')}},  
            { item: '--'},  
            { item: 'Item 1 2', func: () => {console.log('Item 1 2')}}  
        ],  
        { item: 'Item 2', func: () => {console.log('Item 2')}}  
    ],  
    trigger: 'click',  
    popupWidth:'150px',  
    fontFamily: 'monospace, sans-serif',  
    fontSize: '18px',  
    position: 'absolute',  
    top: '0',  
    offsetXpx: '0',  
    offsetYpx: '0',  
    navWidth: '90%',  
    navHeight: '50px',  
    color: 'white',  
    background: 'black',  
    colorHover:'white',
    backgroundHover: 'gray', 
    colorActive: 'white', 
    backgroundActive: 'blue',  
    colorDisabled: 'gray',
    backgroundDisabled: 'black',
    borderColor: 'gray', 
    border: true, 
    logoImage: '',  
    logoText: '<div style="font-weight: bold; font-size: x-large">LOGO</div>',  
    buttonText: 'login',  
    buttonVisible: true,  
    buttonFunction: () => {console.log('button pressed') },  
    searchButtonText: 'search',  
    searchButtonFunction: (inputValue) => {console.log('This is my text:', inputValue) },  
    searchVisible: true 
}  

3.1 items

Die gesamte Navigation und Steuerung wird in der Property items des Objektes beschrieben. Die Property items besteht aus einem Array, welches aus Objekten bzw. weiteren Arrays (Untermenue's) aufgebaut ist. Im obersten Array wird die oberste horizontale Menue-Struktur beschrieben. Hier besteht jeder Eintrag aus einem Objekt, welches eine String-Property item (Menue-Bezeichner) und Functions-Property func, welche Ausgeführt wird, wenn der Menue-Bezeichner angeklickt wurde.

Beispiel: items

const HomeFunc = function(){window.open( 'https://www.w3schools.com','_blank')}
const ContactFunc = ()=>{document.body.style='margin: 0; background-color: green';                
			 document.getElementById('myID').textContent='Home in Berlin'}             
const MENU = 
{
   items: 
   [ 
    {item: 'w3School', func: HomeFunc},
    {item: 'About', func: ()=>document.getElementById('myID').textContent = 'Exapmle for Item'},
    {item: 'kontakt', func: ContactFunc}
   ]
}
const navbar = new MyNavEntryPoint.MyNavBar(MENU);

Bild3 Bild 3 Beispiel

3.2 Untermenues

Soll an einer Stelle ein Untermenue eingebettet werden, wird hier, anstatt eines Objektes mit den Propertypen item und func ein weiteres Array eingefügt. Hierbei ist der erste Eintrag des Array der Einstiegspunkt des Submenues und befindet sich im Elternteil des Submenues. Im ersten Eintrag wird die Property func nicht beachtet, da dieser Eintrag nur den EInstiegspunkt des Submenues darstellt. Beispiel: submenues

...
const MENU = {
   items: 
   [
	   {item: 'w3School', func: HomeFunc},
           {item: 'About', func: ()=>h1.textContent = 'Exapmle for Item'},
           [	{item: 'Contact'},  
	           {item:'kontakt Dresden', func:()=>h1.textContent='Büro Dresden'},
	           [    {item:'Contact Berlin' },
	                   {item:'Pankow', func:()=>h1.textContent='Office Berlin Pankow' },
	                   {item:'Treptow', func:()=>h1.textContent='Office Berlin Treptow' },
	                   {item:'Mitte', func:()=>h1.textContent='Office Berlin Mitte' }
	            ]
           ]     
    ]
}
const navbar = new MyNavEntryPoint.MyNavBar(MENU);
...

Bild 4 Bild 4 submenues

3.3 Weitere Eigenschaften der Property Items

3.3.1 Seperator

Durch das zuweisen eines String ' - - ' {item: '--'} wird an dieser stelle eine Trennmarkierung (Seperator) eingefügt. Beispiel: Seperator

...
[	{item:'Contact Berlin' },
        {item:'Pankow', func:()=>h1.textContent='Office Berlin Pankow' },
        {item: '--'},
        {item:'Treptow', func:()=>h1.textContent='Office Berlin Treptow' },
        {item:'Mitte', func:()=>h1.textContent='Office Berlin Mitte' }
]
...

Bild 5 Bild 5 Seperator

3.3.2 disabled

Wenn ein Eintrag des Menues keine Reaktionen ausführen soll, z. B. aufklappen eines Untermenues oder Ausführen der zugewiesenen Funktion func, kann der Eigenschaft disabled der Wert true zugewiesen werden. Beispiel: disabled

...
 [	   {item: 'w3School', func: HomeFunc},
           {item: 'About', disabled: true, func: ()=>h1.textContent = 'Exapmle for Item'},
           [	{item: 'Contact'},  
           	{item:'Contakt Dresden', func:()=>h1.textContent='Büro Dresden'},
              [	{item:'Contact Berlin' },
              	{item:'Pankow', func:()=>h1.textContent='Office Berlin Pankow' },
                {item: '--'},
                {item:'Treptow', disabled: true,  func:()=>h1.textContent='Office Berlin Treptow' },
                {item:'Mitte', func:()=>h1.textContent='Office Berlin Mitte' }
              ]
           ]     
 ]
 ...

Bild6 Bild 6 disabled

3.4 Zuweisen und Ändern der Konfiguration im Programmlauf

Wie in Absatz 3. Konfiguration erwähnt, können Sie auch nach dem Aufruf der Konstruktormethodeconst mynav = new MyNavEntryPoint.MyNavBar(MENU); bzw. (webpack)

import { MyNavBar } from 'mynav';
const mynav = new MyNavBar(); 

alle Property's veränder. Hierzu greifen Sie einfach auf die durch new konstruktor-methode initialisierte Variable zu (im Beispiel mynav) und verändern die benannte Property. Beispiel: changes after initialization

...
const navbar = new MyNavEntryPoint.MyNavBar(MENU);
//Changes after initialization
//eaxample for singlechanges
navbar.background = 'magenta';
const items = navbar.items;
items[1].item = 'About news';
items[1].func=()=>{h1.textContent='About news'};
items[1].disabled = false;
navbar.items = items;
//example for multichanges
navbar.myNavObj={
  color: 'lightblue',
  backgroundHover: 'darkblue',
  searchVisible: false,
  buttonVisible: false,
  logoText: '<h1 style="background:#000; color: blue; padding: 0 5px">myLogo</h1>'
  };

Bild8 Bild 8 changes after initialization

4 Eigenschaften auf einen Blick

Scrool nach rechts, um den Example-button zu sehen.

NameStandardWerte/EinheitBeschreibungBeispieljsfiddle
items: {item: textValue|array, func: function, disabled: true|false }arraysiehe Abschnitt 3.1
trigger:'click''click'Aufruf des Untermenuesdurch klickentrigger: 'click'
'hover'Aufruf des Untermenues durch hoverntrigger: 'hover'Beispiel
popupWidth:'150px'pxminimale Breite der DropDownMenues (Untermenues)popupWidth: '300px'Beispiel
fontFamily:'monospace, sans-serif'alle font-family'sFontfamilyfontFamily:' "Times New Roman", Times, serif'Beispiel
fontSize:'18px'em, px, % Einheiten für CSS-font-sizeSchriftgrößefontSize:'2em'Beispiel
position:'absolute''absolute''fixed''sticky''relative''static'Positionsverhalten wie in CSS3 beschrieben. Kann im Zusammenhang mit der Eigenschaft top verwendet werden - außer static (hat keine Wirkung).position:'sticky'position:'fixed'Beispiel
top:'0px'pxoberer Abstandtop: '20px'Beispiel
offsetXpx:'0px'pxlinker relativer Abstand des DropdownMenuesoffsetXpx:'-20px'Beispiel
offsetYpx:'0px'pxoberer relativer Abstand des DropdownMenuesoffsetXpx:'10px'Beispiel
navWidth:'90%'px, %zentrierte Breite der angezeigten Elemente/Items der horizontalen NavBarnavWidth: 700pxnavWidth: 80%Beispiel
navHeight:'50px'pxHöhe der MenueItemsnavHeight: '40px'Beispiel
color:'white'colorSchriftfarbecolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
background:'black'colorHintergrundfarbecolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
colorHover:'white'colorSchriftfarbe bei Hovercolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
backgroundHover:'darkgray'colorHintergrundfarbe bei Hovercolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
colorActive:'white'colorSchriftfarbe bei Aktivcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
backgroundActive:'blue'colorHintergrundfarbe bei Aktivcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
colorDisabled:'gray'colorSchriftfarbe bei Disabledcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
backgroundDisabled:'black'colorHintergrundfarbe bei Disabledcolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
borderColor:'white'colorRahmen-/Seperatorfarbecolor: 'rgba(33,55,66,0.6)'color: 'red'color: '#66ffaa'Beispiel
border:truetruefalseRahmen sichtbarborder: falseBeispiel
logoImage:' 'stringQuellpfad und Name der Bilddatei (png, jpg ... etc.) Wird hier ein Wert angegeben wird logoText ignoriert!logoImage: '/img/picture.png'Beispiel
logoText:'\LOGO\'string/innerHTMLWird ignoriert, wenn logoImage angegeben wird!logoText: \myLogo\Beispiel
buttonText:'login'stringTextlabel ButtonbuttonText: 'logout'Beispiel
buttonVisible:TruestringSichbarkeit ButtonbuttonVisible: falseBeispiel
buttonFunction:() => {console.log('button pressed') }functionFunktion die durch klicken ausgeführt wird.buttonFunction: myFunctionBeispiel
searchButtonText:'search'stringTextlabel ButtonsearchButtonText: 'find'Beispiel
searchVisible:TruestringSichbarkeit Input/ButtonsearchVisible: falseBeispiel
searchButtonFunction:(inputValue) => {console.log('This is my text:', inputValue) }functionFunktion die durch klicken ausgeführt wird. In InputValue befindet sich der SuchstringsearchButtonFunction: mySearchFunctionBeispiel
myNavObj:aktuelles myNav-ObjectmyNav-ObjectZur einfachen Änderung mehrerer EigenschaftenmyNav.myNavObj={color: 'blue', background:'#fff'}Beispiel
1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago