Ionic App Templates

When creating a new Ionic app you can create an app based on the out-of-the-box templates:

1544

Ionic Blank

This simplest template start with the Guide page open and contains a blank app page and one Screen1 page with ion-content. Both pages have no specific settings.

1596

๐Ÿ‘

NEW: One-Click Template Installation!

You can now enjoy the one-click-away option of installing the blank Ionic app: simply click the button below and in a moment, your app is ready to start! Thereโ€™s no need to go to the Create new app dialog or download the template backup with further installing it.

Create in Appery.io

Also, to create a new app based on the Ionic Blank template, you can traditionally select it in the Create new app dialog:

1536
  1. From the Apps page, click Create new app > Ionic > Ionic Blank App.
  2. Click the Create button.

Ionic Components Sample App

Check our Ionic Custom UI Components App template to learn about the Ionic UI components and their properties available in the Visual App Builder.

1595

๐Ÿ‘

NEW: One-Click Template Installation!

You can now enjoy the one-click-away option of installing the template app: simply click the button below and in a moment, your app is ready to start! Thereโ€™s no need to go to the Create new app dialog or download the template backup with further installing it.

Create in Appery.io

Also, to create a new app based on the Ionic Components Sample App template, you can traditionally select it in the Create new app dialog:

1542

Ionic Side Menu

To use the Ionic Menu for navigation purposes, create a new app from the Ionic Side Menu template.

1595

๐Ÿ‘

NEW: One-Click Template Installation!

You can now enjoy the one-click-away option of installing the template app: simply click the button below and in a moment, your app is ready to start! Thereโ€™s no need to go to the Create new app dialog or download the template backup with further installing it.

Create in Appery.io

Also, to create a new app based on the Ionic Side Menu template, you can traditionally select it in the Create new app dialog:

1544

๐Ÿ‘

Video Tutorial: Adding Side Menu to Ionic App

You can also check out this video guide for detailed instructions on how to add a side menu to your Ionic application:

The template contains the following:

  • app page.
  • Three Screen pages: Home, Profile, Info.

Ionic Side Menu Template UI

The following section describes how the template was created.

Screen Pages Design Tab

  1. Three Screen pages (renamed to Home, Info and Profile) have similar UI: their Header Toolbar title properties are set to True and their Text properties are defined as Home, Info, and Profile, respectively.
  2. Also, per one Button component is added to the Header > Toolbar > Toolbar Buttons component of every page. Every Button has its Component Type property defined as Ionic Back Button.

app Page Design Tab

  1. Side Menu was enabled on the app Page > PROPERTIES - IndexScreen by setting the Menu property to True.
  2. The Menu Content contains the Menu List of three List Iitem components for navigation: HomeItem, ProfileItem, and InfoItem.
  3. For MenuList, the Container property is set to Items list and defined with the Click action for which the Run TypeScript action with code this.Apperyio.getController("MenuController").close(); is added:
1594
  1. Every List Item contains an Icon and a Label that are called respectively: HomeIcon and HomeLabel, ProfileIcon and ProfileLabel, InfoItem and InfoLabel. To allow labels, the Label property should be set to True for every List Item.
  2. The Text properties of every Label are defined as Home, Info, and Profile, correspondingly.
  3. The corresponding icon styles are applied to all three List Items' icons as their Name property and their Slot properties are set to Start.
  4. The page navigation for List Items is defined under PROPERTIES > Routing: HomeItem routes to Home, ProfileItem routes to Profile and InfoItem routes to Info:
937

Extending Template

This section covers how to extend or modify this app template.

Adding New Page

For adding a new page, do the following:

  1. Create a new page and name it (the Create navigation route for this page check box should be selected).
  2. For the created page, provide the Text value for the Header Toolbar Title and drag & drop a Button to the Header > Toolbar > Toolbar Buttons component. For its Component property, select Ionic Back Button from the drop-down.
  3. Now, go to the app page and use the project OUTLINE view to select the List component.
  4. Add a new List Item by clicking the green + sign:
1592
  1. Rename the component, and define the Routing property so that its Route Name sub-property be linked to the newly created page.
  2. Select the List Item's Label, rename the component, and provide a new value for its Text property.
  3. Add an Icon to the new List Item. Define its Component name property, and select the needed icon to define the Name property, and set Slot to Start:
1595

Deleting Existing Page

To delete the existing page:

  1. Delete the page using its page context menu:
218
  1. It is recommended that the existing route to the page in the Routing section be deleted.
  2. Delete the corresponding list item on the side menu list.

๐Ÿ“˜

Note!

You can also check this tutorial to learn how to create a simple Ionic mobile application with a menu in Appery.io.

Ionic Tabs

You can use our Ionic Tabs template to add Tabs to your app for navigation purposes.

1597

๐Ÿ‘

NEW: One-Click Template Installation!

You can now enjoy the one-click-away option of installing the template app: simply click the button below and in a moment, your app is ready to start! Thereโ€™s no need to go to the Create new app dialog or download the template backup with further installing it.

Create in Appery.io

Also, to create a new app based on the Ionic Tabs template, you can traditionally select it in the Create new app dialog:

1542

The project based on this template contains:

  • Blank app page.
  • Three Screen pages: Home, Info, Profile.
  • Tabs page with three bottom navigation tabs.

Ionic Tabs Template UI

This section describes how the template was created.

Screen Pages Design Tab

  1. Three Screen pages (renamed to Home, Info and Profile) have similar UI: their Header Toolbar Title properties are set to True and their Text properties are defined as Home, Info, and Profile, correspondingly.
  2. The Footer Toolbar is disabled by setting the page Footer property to False.

Tabs Page Design Tab

How the page is designed.

1596
  1. The tabs functionality is enabled by setting the page Tabs property to True.
  2. The Tab Bar contains three Tab Buttons Home, Info, Profile. To define the Tab Bar position, set its Slot property to Bottom.
  3. The Label > Text properties for all Tab Buttons are defined as follows: Home, Profile, and Info.
  4. To change the icon style of the bottom tabs, the Icon > Style property is used.
  5. To define the proper routing, every Tab Button has its Tab property defined accordingly.

Under the Routing tab, enable Tabs as the Default route:

1579

Extending Project

This section describes how to customize the tabbed app template.

๐Ÿ“˜

Want to know more?

In this document, you can find how to arrange for navigation from Tabs to child pages.

Adding New Page

For adding a new page, do the following:

  1. Create a new page and name it (the Create navigation route for this page check box should be selected).
  2. For the created page, provide the Text value for the Header Toolbar Title and disable the Footer Toolbar by setting the page Footer property to False.
  3. Now, go to the Tabs page and use the project OUTLINE view to select the Tab Bar component.
  4. Add a new Tab Button by clicking the green + sign inside the Tab Bar:
1592
  1. For its Tab property, select the corresponding page value from the drop-down.
  2. Under its PROPERTIES panel, expand the Icon property and set the needed Style icon, then expand the Label property and define its Text:
1350

Renaming Existing Page

How to rename the existing page:

  1. In the Project view, click the cog icon to invoke the context menu. From the drop-down, select Rename:
245

Then provide a new page name and confirm.

  1. Go to the page and change its Header Toolbar Title Text.
  2. You can also rename the route of the page under Project > Routing, but these changes don't affect the UI.
  3. Now, switch to the Tabs page, select the corresponding tab item and make sure that the corresponding Tab property is updated.

Deleting Existing Page

How to delete the existing page:

  1. Delete the page using its context menu.
  2. It is recommended that the existing route to the page in the Routing section be deleted.
  3. Delete the corresponding tab button item in the Tab Bar.

๐Ÿ“˜

Want to know more?

You can also check this Appery.io Community video to learn how to create an Ionic app with tabs using the Appery.io platform: