项目作者: ryanteo96

项目描述 :
Ionic JSON File Browser is a custom Ionic module that can render a file browser.
高级语言: TypeScript
项目地址: git://github.com/ryanteo96/ionic-json-file-browser.git
创建时间: 2018-06-12T05:55:30Z
项目社区:https://github.com/ryanteo96/ionic-json-file-browser

开源协议:MIT License

下载


Ionic JSON File Browser

Codacy Badge npm version
Imgur
Ionic JSON File Browser is a custom Ionic module that can render a file browser.

Overview

Ionic JSON File Browser is based on the following libraries & tools:

Features

  • List view
  • Tree View
  • Navigation
  • History
  • Select/Multi Select
  • Sorting
  • Context Menu/Action Sheet
  • Icons
  • Mobile Support

Installation

  1. $ npm install ionic-json-file-browser

Setup

Importing Module:

  1. import { FileBrowserModule } from 'ionic-json-file-browser';
  2. @NgModule({
  3. imports: [
  4. ...
  5. FileBrowserModule
  6. ...
  7. ]
  8. })

Using in template:

  1. <file-browser></file-browser>

Generating File Browser in page:

  1. import { FileBrowser } from "ionic-json-file-browser";
  2. export class HomePage implements OnInit {
  3. constructor(public fileBrowser: FileBrowser) {}
  4. ngOnInit() {
  5. this.fileBrowser.generateFileBrowser(node, entity, "0");
  6. }
  7. }

Note: This is just a simple look at the installation and setup of Ionic JSON File Browser. Further documentation of the API can be found in the wiki on the Github page.