@nativescript-community/ui-material-bottom-navigation
Version:
Material Design Bottom Navigation bars allow movement between primary destinations in an app. Tapping on a bottom navigation icon takes you directly to the associated view or refreshes the currently active view.
22 lines • 632 B
JavaScript
export default {
model: {
prop: 'selectedIndex',
event: 'selectedIndexChange'
},
render(h) {
return h('NativeMDBottomNavigation', {
on: this.$listeners,
attrs: this.$attrs
}, this.$slots.default);
},
methods: {
registerTabStrip(tabStrip) {
this.$el.setAttribute('tabStrip', tabStrip);
},
registerTabContentItem(tabContentItem) {
const items = this.$el.nativeView.items || [];
this.$el.setAttribute('items', items.concat([tabContentItem]));
}
}
};
//# sourceMappingURL=component.js.map