是否可以在 CX 中将 html 内容插入窗口组件的标题而不是字符串?我需要自定义窗口标题的内容。
最佳答案
是的。以下是有关如何在页眉中放置其他按钮的示例:
import { Button, FlexRow, Heading, HtmlElement, Window } from "cx/widgets";
export const App = (
<cx>
<div>
<Window bodyStyle="padding: 1rem">
<FlexRow putInto="header" spacing align="center">
<Heading level={4}>My Title</Heading>
<div style="flex: 1" />
<Button mod="hollow" icon="search" />
</FlexRow>
Window Contents
</Window>
</div>
</cx>
);
关于cxjs - CX JS - 将 html 插入窗口的标题属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50735080/