Member-only story

Mobile Development with Ionic and Vue — Item Groups, Notes, and Lists

John Au-Yeung
3 min readJan 26, 2021

--

Photo by Markus Winkler on Unsplash

If we know how to create Vue web apps but want to develop mobile apps, we can use the Ionic framework.

In this article, we’ll look at how to get started with mobile development with the Ionic framework with Vue.

Item Groups

We can add item groups with the ion-item-group component.

For example, we can write:

<template>
<ion-page>
<ion-content>
<ion-item-group>
<ion-item-divider>
<ion-label>B</ion-label>
</ion-item-divider>
<ion-item>
<ion-label>Bangladesh</ion-label>
</ion-item>
<ion-item>
<ion-label>Belarus</ion-label>
</ion-item>
<ion-item>
<ion-label>Belgium</ion-label>
</ion-item>
</ion-item-group>
</ion-content>
</ion-page>
</template>
<script lang="ts">
import {
IonItem,
IonItemGroup,
IonContent,
IonPage,
IonLabel,
} from "@ionic/vue";
import { defineComponent, ref } from "vue";
export default defineComponent({
components: { IonItem, IonContent, IonItemGroup, IonPage, IonLabel },
});
</script>

We add the ion-item-group to group the list items and the item divider together.

--

--

No responses yet