fileable-component-folder
![fileable logo](./static/docs/logo.png)
Last updated 5 months ago by johnhenry .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fileable-component-folder 
SYNC missed versions from official npm registry.

fileable logo

Fileable Component: Folder

Fileable template component used to create folders.

Folders can contain files and other folders

import File from 'fileable-component-file';
import Folder from 'fileable-component-folder';
const template = ()=><Folder name='project/'>
    <File name='empty_file'/>
    <Folder name='empty_folder'/>
</Folder>

Attributes

name

A folder must have a name attribute.

const template = ()=><Folder name='empty_folder' />

zip

Archives can be created with using the zip attribute

const template = ()=><Folder name='project' zip>
    <File name='empty_file'/>
</Folder>

extension

Extension appended to name.

const template = ()=><Folder name='project' zip extension='.zip'>
    <File name='empty_file' />
</Folder>;

API

Table of contents

Todo

  • remove unnecessary dependencies
  • add proper typescript typeings
  • add 'src' attribute

Current Tags

  • 0.0.6                                ...           latest (5 months ago)

6 Versions

  • 0.0.6                                ...           5 months ago
  • 0.0.5                                ...           5 months ago
  • 0.0.4                                ...           5 months ago
  • 0.0.3                                ...           5 months ago
  • 0.0.2                                ...           5 months ago
  • 0.0.1                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 12
Dependencies (1)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |