Flyout menus for html extensions will be supported in next release in October. Thanks
Thanks for the update.
Hello ! I would also like to add fly out menu items to my panel. I suppose the next release you're talking about is a new release of Photoshop (because I suppose a CSInterface update alone couldn't bring us flyout menus) ...? Is is scheduled yet ?
Thanks in advance
the PS release we talk about is in fact CC 2014.2.
For instance, try putting this one in the JS:
var flyoutXML = '<Menu> \ <MenuItem Id="menuItemId1" Label="TestExample1" Enabled="true" Checked="false"/> \ \ <MenuItem Label="TestExample2"> \ <MenuItem Label="TestExample2-1"> \ <MenuItem Label="TestExample2-1-1" Enabled="false" Checked="true"/> \ </MenuItem> \ <MenuItem Label="TestExample2-2" Enabled="true" Checked="true"/> \ </MenuItem> \ \ <MenuItem Label="---" /> \ <MenuItem Label="TestExample3" Enabled="false" Checked="false"/> \ </Menu>'; csInterface.setPanelFlyoutMenu(flyoutXML);
Mind you, nested menus do not currently work in PS (but do on AE), it's a known issue.
Time permitting, I'll add a dedicated Tip to the series HTML Panels Tips (which by the way is now 13 items strong).
Anyway, it should be documented in the latest CSInterface.js file for CEP5.2.
Thank you ! I saw that ! And they fixed keyboard shortcuts, too
By the way, maybe you know if the new version of CSInterface.js is backwards compatible (with CC2014 and CC2014.1)...?
I have seen (in one of your tips I think - I'm taking the occasion to thank you for them) that you can have version-dependent packages but I'd rather not have to do that !
This now works on Indesign new release too!
I've added HTML Panels Tips: #14 Flyout Menu | Photoshop, etc. with a demo extension showing a Flyout menu and its click handler (full code is provided on my GitHub page, link in the post) - hope this helps!
As for backwards compatibility yannick1976 asked about: PS CC needs CEP version 4 - as far as I know CC-not-2014 doesn't get CEP updates. I can't tell you about 2014.0 and 2014.1 though... Best way is to check the demo extension on them ;-)
Many thanks for putting up the demo. Will try it out soon.