Created
November 10, 2014 20:42
-
-
Save atika/8383b9405b6973f8672b to your computer and use it in GitHub Desktop.
Dropzone 3 action snippet for Sublime Text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
# Dropzone Action Info | |
# Name: ${1:Name} | |
# Description: ${2:Description} | |
# Handles: ${3:Files, Text} | |
# Creator: ${4:Creator Name} | |
# URL: ${5:Creator URL} | |
# OptionsNIB: ${6:Login, ExtendedLogin, APIKey, UsernameAPIKey, ChooseFolder, ChooseApplication, GoogleAuth} | |
# LoginTitle: ${7:Login Title (For Login NIB)} | |
# SkipConfig: ${8:Skip configuration (Yes, No)} | |
# Events: ${9:Dragged, Clicked} | |
# Version: 1.0 | |
# MinDropzoneVersion: 3.2.1 | |
def dragged | |
\$dz.begin("Starting some task...") | |
# Your code here | |
\$dz.finish('Finished!') | |
\$dz.url(false) | |
end | |
def clicked | |
\$dz.finish("You clicked me!") | |
\$dz.url(false) | |
end | |
]]></content> | |
<tabTrigger>dz</tabTrigger> | |
<scope>source.ruby</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment