繁体   English   中英

伪造查看器按钮文本

[英]Forge Viewer Buttons Text

我有一堆组合框要添加到查看器的工具栏中,我想要文本而不是图标。

目前,我能看到的唯一方法是使用 JS 创建 styles 或使用 JS 添加内联 styles,如果可能的话,我想避免。 有没有办法为按钮设置文本(或更好的 html),或者是否有更适合此的控件。

标准工具栏按钮旨在始终使用图标作为其内容。 据我所知,不幸的是,这个控件没有官方的替代方法可以包含文本。

With that said, you might be able to avoid custom styling by subclassing the Button class, removing the adsk-button-icon class from the button's this.icon object (which is a <div> element), and add the adsk-button class反而。

暂无
暂无

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

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