[英]Maximize Office Fabric UI Dialog
I didn't find any documentation over resizing Office Fabric Ui Dialog .我没有找到任何有关调整Office Fabric Ui Dialog大小的文档。 I need to have a button near 'close' so the Dialog box can be Maximized and resized to original place.
我需要在“关闭”附近有一个按钮,以便可以最大化对话框并将其调整为原始位置。 Can anybody suggest a way for this?
有人可以为此提出建议吗?
Mike from the Fabric team here.来自 Fabric 团队的 Mike。
The Dialog now includes a topButtonProps
prop, which can be used to add additional buttons to the top: Dialog 现在包含一个
topButtonProps
道具,可用于向顶部添加其他按钮:
<Dialog
...
topButtonsProps={ [{
key: 'More',
buttonType: ButtonType.icon,
icon: 'More',
ariaLabel: 'More',
onClick: this._onMoreButtonClicked.bind(this)
}] }
>
Dialog content.
</Dialog>
Which results in a new command being added like so:这会导致添加一个新命令,如下所示:
There's nothing stopping you from extending Fabric components with your own CSS and JavaScript customizations from the source code on GitHub .没有什么能阻止您使用来自GitHub 上的源代码的您自己的 CSS 和 JavaScript 自定义来扩展 Fabric 组件。
If there are features that you think would be helpful you can make requests here: https://trello.com/b/sPTXiMzG/office-ui-fabric-core-requests如果有您认为有用的功能,您可以在此处提出请求: https : //trello.com/b/sPTXiMzG/office-ui-fabric-core-requests
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.