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
- Host: GitHub
- URL: https://github.com/hacknlove/semantic-input
- Owner: hacknlove
- Created: 2017-03-21T14:35:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-21T14:36:53.000Z (about 9 years ago)
- Last Synced: 2025-01-08T20:51:06.564Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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