fileable-component-folder
![fileable logo](./static/docs/logo.png)
Last updated 8 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.7                                ...           latest (8 months ago)

7 Versions

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

Copyright 2014 - 2017 © taobao.org |