added docs on new directive

This commit is contained in:
Bernhard Posselt
2013-03-31 03:09:49 +02:00
parent 84bc571395
commit c78752e7ca

View File

@@ -366,6 +366,18 @@ Example:
<button oc-click-focus="{selector: '#settings'}" />
<input id="settings" type="text" />
ocReadFile
~~~~~~~~~~~~
Can be used to pass the contents of a file input field to a function. The directive binds to the **change** event of the input. The read content will be assigned to the scope as $fileContent variable and the given function will be called.
Example:
.. code-block:: html
<input type="file" name="import" oc-read-file="import($fileContent)"/>
ocDraggable
~~~~~~~~~~~
Shortcut for using jquery-ui draggable. The expression is passed to $.draggable.