我可以在我的 office-js Excel Web 加载项中使用 ms-Spinner,而无需 'react' 等框架吗?
Can I use ms-Spinner in my office-js Excel web add-in without a framework such as 'react'?
我构建了一个 Excel 加载项(使用 Office-js、TypeScript、HTML、JQuery、CSS、Visual Studio 2019 ) 操纵 Excel 电子表格,我想用进度微调器显示进度消息。我认为 UI Fabric 中的 ms-Spinner 符合要求。我可以将它与 HTML/JQuery/CSS 一起使用,还是需要像 React 这样的框架?
我在 javascript 中试过这个,但它抛出异常:
var spin = document.querySelector('.ms-Spinner');
if (spin) spinnerComponent = new components.Spinner(spin);
// Unhide and start the spinner
$(".ms-Spinner").show();
if (spinnerComponent) spinnerComponent.start();
office-add-可以使用任何前端库或框架ins.you开发office add-in不需要依赖react-js
如果你想从 Fabric React, then you have to use React. However, there is a non-React set of Fabric controls at Fabric.js including a spinner which you can use. That said, we used it in this sample and it seldom actually renders: PowerPoint Add-in Microsfot Graph ASP.NET InsertChart.
我构建了一个 Excel 加载项(使用 Office-js、TypeScript、HTML、JQuery、CSS、Visual Studio 2019 ) 操纵 Excel 电子表格,我想用进度微调器显示进度消息。我认为 UI Fabric 中的 ms-Spinner 符合要求。我可以将它与 HTML/JQuery/CSS 一起使用,还是需要像 React 这样的框架?
我在 javascript 中试过这个,但它抛出异常:
var spin = document.querySelector('.ms-Spinner');
if (spin) spinnerComponent = new components.Spinner(spin);
// Unhide and start the spinner
$(".ms-Spinner").show();
if (spinnerComponent) spinnerComponent.start();
office-add-可以使用任何前端库或框架ins.you开发office add-in不需要依赖react-js
如果你想从 Fabric React, then you have to use React. However, there is a non-React set of Fabric controls at Fabric.js including a spinner which you can use. That said, we used it in this sample and it seldom actually renders: PowerPoint Add-in Microsfot Graph ASP.NET InsertChart.