An open API service indexing awesome lists of open source software.

https://github.com/hacknlove/semantic-input

input type file, for semantic-ui
https://github.com/hacknlove/semantic-input

Last synced: about 2 months ago
JSON representation

input type file, for semantic-ui

Awesome Lists containing this project

README

          

# semantic-input

## use:

### Template:
{{> input name="foo" class="bar buz"}}

where: `name`, and `class` are optionals

* `name` sets the name of the `` wrapper

### Events:

Template.yourtemplate.events({
'fileloaded input[name=foo]': function (event, instance, text) {
// file has been loaded
// text = readed file content
},
'cancel input[name=foo]': function (event, instance) {
// user has canceled)
}
})

### Data:
$('input[name=foo]').data('text') => readed file content