Thanks to all of you who have downloaded this plugin! Please consider leaving a rating and review, it would be really helpful to get your feedbacks. Thanks.
Plugin by icliclabs.com
This plugin is compatible with Ionic v2.x and v3.x!
Description
Easily add categories to your app. This plugin works on iOS, Android and Windows Phone. The component is very easy to use and should only take a few minutes to include to your app.
Test Before You Buy
You can test the app using Ionic View and enter the app id 861ad82e.
Features
- Works with iOS, Android and Windows Phone.
- Only 1 line to add to your template
- Comes with serveral full and detailed examples.
- This component has well structured html, css and js files and is heavily commented, so that it is easy to edit, add your style, etc.
Installation
- Copy the
app/components/ion-categories.ts
file into your app directory
- Import the
IonCategories
component and add it to the declarations
list in the app/app.module.ts
file
That's all!
Usage
- in your page template, add
<ion-categories>
in your ion-content
, the parameter categories
is a mandatory reference to an array of IonCategoriesOptions
.
That's all. Here is an example of a Page template, very simple. Just add the ion-categories
component:
<!-- simply add <ion-categories> to your ion-content element, that's all! -->
<ion-content>
<ion-categories [categories]="categories"></ion-categories>
</ion-content>
Here is how to define categories:
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { IonCategory } from '../../../components/ion-categories'
@Component({
selector: 'example1-page',
templateUrl: 'example1.html'
})
export class Example1Page {
private categories: Array<IonCategory>;
constructor(public navCtrl: NavController) {
this.categories = [{
key: 'use your key/id here (optional)'
title: 'Dinner',
description: '39 items', // (optional)
hasOverlay: true, // (optional)
background: 'url(./assets/images/1.jpg) center center / cover no-repeat', // CSS background property
onClick: function(category) {
alert('key=' + category.key);
}
}]
}
}
Other Popular Plugins:
- Ionic Categories: Ionic v2.x/v3.x
- Ionic Passcode Square: Ionic v2.x/v3.x
- Ionic Passcode Flat: Ionic v2.x/v3.x
- Ionic Passcode Round: Ionic v2.x/v3.x
- Ionic Shrinking Header: Ionic v2.x/v3.x
- Ionic Material Sidemenu: Ionic v2.x/v3.x
- Ionic Walkthrough: Ionic v2.x/v3.x
- Ionic Contacts Inviter: Ionic v2.x/v3.x
- Ionic Cover Header: Ionic v1.x - Ionic v2.x/v3.x
- Ionic Profile Header: Ionic v2.x/v3.x
- Ionic Numeric Keyboard: Ionic v1.x - Ionic v2.x/v3.x
- Ionic Phone Number Validator: Ionic v1.x
- Ionic Cover Item: Ionic v1.x
- Ionic Timer: Ionic v1.x
Need Custom Work?
If you need help with your Ionic apps, if you need a specific plugin or integration. Let's get in touch. I'll be glad to develop or advise you for your app! Email me at icl1clabs@gmail.com.
Hey there! You'll need to log in
and purchase the add-on
before you can leave a rating here.
There are no ratings for this
plugin yet
·
· just now
{{ rating.comment }}
·
· just now
{{ rating.comment }}