<div dir="ltr"><div>Thank you, this works just fine.<br><br></div><div>And I always have at least one menuitem visible, so there is no need to hide the menu itself, but it is a good thing to keep in mind.<br></div><div><br>

</div>Strangely, <a href="https://sailfishos.org/sailfish-silica/qml-sailfishsilica-menuitem-members.html">https://sailfishos.org/sailfish-silica/qml-sailfishsilica-menuitem-members.html</a> does not reference this attribute.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-10 13:05 GMT+01:00  <span dir="ltr"><<a href="mailto:dcaliste@free.fr" target="_blank">dcaliste@free.fr</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

There is the visible attribute that can be set of each menuitem. In addition, don't forget to put the visible attribute of the pulley menu itself to false if there is no visible menuitem, to avoid empty pulley menu.<br>


<br>
Damien.<br>
<br>
À Mon Mar 10 2014 11:29:13 GMT+0100 (CET), Vivian Brégier a écrit :<br>
<div><div class="h5">>Hi,<br>
><br>
>I am trying to have the pulley menu of my app depend on the app context.<br>
>I want some menuitem to be hidden when a certain condition is false.<br>
><br>
>I did not find any attribute in MenuItem class to do this.<br>
>Is it possible to do it in qml ? Maybe using javascript ?<br>
><br>
>Thank you for your help.<br>
><br>
>--<br>
>Vivian Brégier<br>
><a href="http://www.are-ata.org/Vivian.vcf" target="_blank">http://www.are-ata.org/Vivian.vcf</a><br>
</div></div>_______________________________________________<br>
SailfishOS.org Devel mailing list</blockquote></div><br><br clear="all"><br>-- <br>Vivian Brégier<br><a href="http://www.are-ata.org/Vivian.vcf">http://www.are-ata.org/Vivian.vcf</a><br>
</div>