简体   繁体   English

是否有任何方式在gojs面板中下拉?

[英]Is there any way putting dropdown in gojs panel?

Is there any way we can integrate HTML controls like dropdown in goJS panel. 有没有什么办法可以集成HTML控件,比如goJS面板中的下拉菜单。 I can see we can have text box inside panel and checkboxes as well. 我可以看到我们可以在面板和复选框内设置文本框。 But i can't find dropdown. 但我找不到下拉菜单。

There's currently no way to add arbitrary HTML to a GoJS panel, but you could fashion elements to work like a drop-down. 目前无法将任意HTML添加到GoJS面板,但您可以将元素设置为下拉列表。

It may be better to bring up HTML elements when you click on a node, which might suit you. 当您单击可能适合您的节点时,最好调出HTML元素。 The custom context menu sample does that (but with right click context menus). 自定义上下文菜单示例执行此操作(但使用右键单击上下文菜单)。

Another example of showing HTML elements over a Diagram is the data visualization sample , though this works on mouseOver instead of click, the idea should be similar. 在图上显示HTML元素的另一个例子是数据可视化示例 ,虽然这适用于mouseOver而不是click,但这个想法应该是类似的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM