![]() The action.rb or action.py file must have certain metadata at the top. The bundle can also optionally contain other resources such as Ruby or Python libraries or executables. It must contain either an action.rb script (for Ruby actions) or an action.py script (for Python actions) and also an icon.png file that contains the default icon for the action. There's a good hands-on introduction to the Ruby language here and an introduction to Python here.Ī Dropzone 4 action bundle is simply a directory with a. If you haven't coded in Ruby or Python before then it would be a good idea to learn a little of either of these languages before attempting to create a Dropzone action. ![]() ![]() Dropzone actions are developed in either Ruby or Python. The API outlined below describes how you can easily develop your own actions to use with Dropzone and then share these actions with others. The possible uses are limited only by your imagination.Ī Dropzone action also accepts a click event so when you click on it in the Dropzone grid it does something: for example the Finder Path action copies the currently selected item path in Finder to the clipboard. ![]() This might be uploading the dropped files to a web service, renaming the files, resizing images, zipping files etc. The general idea of a Dropzone action is that files or text will be dropped on the action and then the action will perform some useful function on the dropped items.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |