All Projects → fer → Ion Tree List

fer / Ion Tree List

Licence: mit
Ionic directive for displaying nested list items.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Ion Tree List

Imojo
Ionic chat application
Stars: ✭ 45 (-38.36%)
Mutual labels:  ionic
Ionic Social Login With Firebase
IONIC - Social Login with Firebase
Stars: ✭ 58 (-20.55%)
Mutual labels:  ionic
Deckdeckgo
The web open source editor for presentations
Stars: ✭ 1,117 (+1430.14%)
Mutual labels:  ionic
Flutter Egitim Serisi
Kesali Tech Youtube kanalında yayınlanan Flutter Eğitim serisi için kaynaklar ve video linkleri.
Stars: ✭ 48 (-34.25%)
Mutual labels:  ionic
Ionic2 Tutorial Pouchdb
Tutorial: How To Use PouchDB + SQLite For Local Storage In Ionic 2
Stars: ✭ 56 (-23.29%)
Mutual labels:  ionic
Ionic Ratings
'ionic-ratings' bower component for ionic framework applications
Stars: ✭ 58 (-20.55%)
Mutual labels:  ionic
Pwa Workshop Angular Firebase
Build a production ready PWA with Angular and Firebase! This workshop consists of multiple steps for producing a PWA by transforming a regular web app - Ionic Conference App into a PWA, finally deploying it to Firebase.
Stars: ✭ 45 (-38.36%)
Mutual labels:  ionic
Angular Pwa Seed
Multiplatform Angular project (Web/PWA, Mobile and Desktop) with Ionic (and optionally Bootstrap) - Sample: https://angular-pwa-seed.netlify.com
Stars: ✭ 68 (-6.85%)
Mutual labels:  ionic
Kickstarts
💻 No setup, just development!
Stars: ✭ 57 (-21.92%)
Mutual labels:  ionic
Ionic Example App
A Ionic Example App (previously known as ionic 2 examples). Contains different examples on how to use the Ionic Framework
Stars: ✭ 61 (-16.44%)
Mutual labels:  ionic
Sentry Cordova
The official Sentry SDK for Cordova
Stars: ✭ 49 (-32.88%)
Mutual labels:  ionic
Ionic Chat With Firebase
IONIC Chat With Firebase
Stars: ✭ 53 (-27.4%)
Mutual labels:  ionic
Starter Kit
📦 Angular 11+ starter kit for enterprise-grade projects
Stars: ✭ 1,102 (+1409.59%)
Mutual labels:  ionic
Ionic5 Starter App Tutorial
Free Ionic Starter Template - Ionic 5 example app. Learn how to start using Ionic 5 to create a simple app with lists, forms and navigation and more!.
Stars: ✭ 47 (-35.62%)
Mutual labels:  ionic
Nativescript Ionic Template
📱 🖥 Create Mobile First apps, Web and Native sharing the code with Angular 🎉
Stars: ✭ 65 (-10.96%)
Mutual labels:  ionic
Angular Toolkit
Angular Schematics and Builders for `@ionic/angular` apps.
Stars: ✭ 45 (-38.36%)
Mutual labels:  ionic
Ion Affix
A directive for Ionic framework for creating affix headers.
Stars: ✭ 58 (-20.55%)
Mutual labels:  ionic
Ionic Typescript Mdha Starter
📱 This is an boilerplate starter project I use to bootstrap mobile applications. It is built with Ionic, AngularJS, TypeScript, and runs in Cordova. It is built upon the Visual Studio Tools for Apache Cordova project provided in Visual Studio 2015.
Stars: ✭ 70 (-4.11%)
Mutual labels:  ionic
Ng Dynamic Forms
Rapid form development library for Angular
Stars: ✭ 1,146 (+1469.86%)
Mutual labels:  ionic
Ionic Google Login
Ionic 4 starter app to show you how to add Google Log In to an Ionic App using Google Sign-In Cordova Plugin.
Stars: ✭ 61 (-16.44%)
Mutual labels:  ionic

ion-tree-list Stories in Ready devDependency Status Bower version

Ionic directive for displaying nested list ionic items.

Check demo link.

Note:

I am actively looking for contributors who can port this library to Ionic 2. If you are interested in doing so, don't hesitate to drop me an email.

Installation

bower install ion-tree-list --save

Add somewhere in your HEAD tag:

<script src="lib/ion-tree-list/ion-tree-list.js"></script>

Or fetch it from the cdnjs project : https://cdnjs.com/libraries/ion-tree-list.

You'll need to add ion-tree-list as a dependency on your Ionic app:

angular.module('starter', [
    'ionic', 
    'controllers', 
    'services', 
    'ion-tree-list'
])

In your controller.js:

  $scope.tasks = [
    {
      name: 'first task 1',
      tree: [
        {
          name: 'first task 1.1'
        }
      ]
    },
    {
      name: 'first task 2'
    }
  ];    

In your view.html:

<ion-tree-list items="tasks" collapsed="true"></ion-tree-list>

Fetch clicked item by listening to $ionTreeList:ItemClicked in your controller:

Emmited events

$scope.$on('$ionTreeList:ItemClicked', function(event, item) {
  // process 'item'
  console.log(item);
});

$scope.$on('$ionTreeList:LoadComplete', function(event, items) {
  // process 'items'
  console.log(items);
});

Custom templates

Imagine your tasks in $scope.tasks in your controller.js has an extra attribute as checked:

  $scope.tasks = [
    {
      name: 'first task 1',
      checked: false,
      tree: [
        {
          name: 'first task 1.1',
          checked: true
        },
      ]
    },
    {
      name: 'first task 2',
      checked: true
    }
  ];

In order to consume the checked value in your view, create a ion-item.tmpl.html file in your www folder containing the following:

<input type="checkbox" ng-model="item.checked"/>
{{item.name}}

Add an extra template-url attribute for your custom template:

<ion-tree-list items="tasks" template-url="'ion-item.tmpl.html'"></ion-tree-list>

Contributing

Developers interested in contributing are very welcomed :)

Don't hesitate to ping me on my email if you are missing a feature, a fix or you simply want to contribute.

There's a list of issues right here.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].