nativescript-bottombar
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -49,3 +49,3 @@ "use strict"; | ||
set: function (value) { | ||
if (this._title !== value && value) { | ||
if (this._title !== value && value && this._parent) { | ||
this._title = value; | ||
@@ -63,3 +63,3 @@ this._parent.changeItemTitle(this._index, this._title); | ||
set: function (value) { | ||
if (this._icon !== value && value) { | ||
if (this._icon !== value && value && this._parent) { | ||
this._icon = value; | ||
@@ -77,3 +77,3 @@ this._parent.changeItemIcon(this._index, this._icon); | ||
set: function (value) { | ||
if (this._color !== value && value) { | ||
if (this._color !== value && value && this._parent) { | ||
this._color = value; | ||
@@ -91,3 +91,3 @@ this._parent.changeItemColor(this._index, this._color); | ||
set: function (value) { | ||
if (this._notification !== value && value) { | ||
if (this._notification !== value && value && this._parent) { | ||
this._notification = value; | ||
@@ -94,0 +94,0 @@ this._parent.android.setNotification(this._notification, this._index); |
@@ -41,8 +41,8 @@ import { Property, PropertyChangeData } from "ui/core/dependency-observable"; | ||
_createUI(): void; | ||
_addArrayFromBuilder(name: string, value: Array<any>): void; | ||
_onBindingContextChanged(oldValue: any, newValue: any): void; | ||
_addChildFromBuilder(name: string, value: any): void; | ||
insertTab(tabItem: BottomBarItem, index?: number): void; | ||
items: Array<BottomBarItem>; | ||
_onItemsPropertyChangedSetNativeValue(data: PropertyChangeData): void; | ||
createItems(items: Array<any>): void; | ||
changeItemTitle(index: number, title: string): void; | ||
changeItemColor(index: number, color: string): void; | ||
changeItemIcon(index: number, icon: string): void; | ||
selectedIndex: number; | ||
@@ -49,0 +49,0 @@ _onSelectedIndexPropertyChangedSetNativeValue(data: PropertyChangeData): void; |
{ | ||
"name": "nativescript-bottombar", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "NativeScript plugin for AHBottomNavigation.", | ||
@@ -5,0 +5,0 @@ "main": "bottombar", |
@@ -78,2 +78,3 @@ [![npm](https://img.shields.io/npm/v/nativescript-bottombar.svg)](https://www.npmjs.com/package/nativescript-bottombar) | ||
!!! If you want to change items color, title.. you'll have to wait for the BottomBar to be loaded !!! | ||
@@ -86,3 +87,3 @@ ### XML | ||
<GridLayout row="1"> | ||
<BottomBar row="1" [items]="items" (tabSelected)="tabSelected($event)" [hide]="hidden" titleState={{titleState}} ></BottomBar> | ||
<BottomBar row="1" [items]="items" (tabSelected)="tabSelected($event)" [hide]="hidden" titleState="{{titleState}}" (loaded)="bottomBarLoaded()"></BottomBar> | ||
</GridLayout> | ||
@@ -129,2 +130,5 @@ </GridLayout> | ||
} | ||
bottomBarLoaded() { | ||
console.log('bottomBarLoaded'); | ||
} | ||
} | ||
@@ -131,0 +135,0 @@ ``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24927
138
0