@nativescript-community/ui-material-tabs
Version:
Material Design Tabs organize content across different screens, data sets, and other interactions.
22 lines • 620 B
JavaScript
export default {
model: {
prop: 'selectedIndex',
event: 'selectedIndexChange'
},
render(h) {
return h('NativeMDTabs', {
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