New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lf-ng-md-file-input

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lf-ng-md-file-input

angular material file input with more feature.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
210
decreased by-39.31%
Maintainers
1
Weekly downloads
 
Created
Source

angular-material-fileinput

A Html file input enhance base on angular material.

It's support multiple file type .

screensho 0

Demo

Live Demo

Getting Started

Install with Bower or download the files directly from the dist folder in the repo.

bower install lf-ng-md-file-input --save

Add dist/lf-ng-md-file-input.js and dist/lf-ng-md-file-input.css to your index.html.

<link rel="stylesheet" href="../bower_components/lf-ng-md-file-input/dist/lf-ng-md-file-input.css">
<script src="../bower_components/lf-ng-md-file-input/dist/lf-ng-md-file-input.js"></script>

Add lfNgMdFileInput as a module dependency for your module.

var app = angular.module('app', ['ngMaterial','ngMdIcons','lfNgMdFileInput']);

##Usage

This directive will return a array via lf-files attribute binding, the object in array contain some object include lfFile and lfDataUrl, that you can grab file and preview dataurl easily.

###Basic


<lf-ng-md-file-input lf-files="files"></lf-ng-md-file-input>

###Accept

Accept attribute can set file extension (e.g: .png) or MIME type (e.g: image/*)


<lf-ng-md-file-input lf-files="files" accept=".png"></lf-ng-md-file-input>

###Multiple


<lf-ng-md-file-input lf-files="files" multiple></lf-ng-md-file-input>

###Placeholder


<lf-ng-md-file-input lf-files="files" lf-placeholder="my placeholder"></lf-ng-md-file-input>

###Preview


<lf-ng-md-file-input lf-files="files" preview></lf-ng-md-file-input>

###Drag


<lf-ng-md-file-input lf-files="files" drag></lf-ng-md-file-input>

Release History

  • v0.1.0 - Initial release.
  • v1.0.0 - Standard features.

Keywords

FAQs

Package last updated on 06 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc