<div dir="ltr">Yes, I meant the files app. Thank you!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 20, 2015 at 8:42 AM, Vincent Petry <span dir="ltr"><<a href="mailto:pvince81@owncloud.com" target="_blank">pvince81@owncloud.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Which three dot menu ? In the files app ?<br>
<br>
You can use OCA.Files.fileActions.registerAction() to create new file<br>
actions. See how the text editor does it:<br>
<a href="https://github.com/owncloud/files_texteditor/blob/master/js/editor.js#L256" rel="noreferrer" target="_blank">https://github.com/owncloud/files_texteditor/blob/master/js/editor.js#L256</a><br>
Don't use "setDefault" though.<br>
<br>
Cheers,<br>
<br>
Vincent<br>
<div><div class="h5"><br>
On 11/20/2015 09:32 AM, Richard Parsons wrote:<br>
> Hello<br>
><br>
> I'm a new Owncloud app developer, but I've looked at the tutorial and so<br>
> forth.<br>
><br>
> When writing an app, how do I get a new option avaliable in the "three dot"<br>
> menu to run some code in my app?<br>
><br>
> Many thanks<br>
> Richard<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@owncloud.org">Devel@owncloud.org</a><br>
> <a href="http://mailman.owncloud.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://mailman.owncloud.org/mailman/listinfo/devel</a><br>
><br>
<br>
<br>
<br>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@owncloud.org">Devel@owncloud.org</a><br>
<a href="http://mailman.owncloud.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://mailman.owncloud.org/mailman/listinfo/devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Richard Parsons<br> <br>Email:  <a href="mailto:richard.lee.parsons@googlemail.com" target="_blank">richard.lee.parsons@googlemail.com</a></div>
</div>