我正在创建一个 VSTS 小部件,它也有一个配置小部件。我想知道如何设置繁忙指示器,因为数据渲染需要一些时间。
来自 API: 它说明了有关 VSS.INIT 选项的内容...
IExtensionInitializationOptions
Last Update: 1/24/2017
Defined in vss.d.ts
Options for the extension's initialization method
Members
explicitNotifyLoaded: boolean. Optional.
Set to true if the extension willexplicitly call notifyLoadSucceeded or
notifyLoadFailed itself to indicate that the extension is done loading
(stops UI loading indicator in the host). If false (the default) the
extension is considered ready as soon as init is called.
但是我们已经将这个选项设置如下:
VSS.init({
explicitNotifyLoaded: true,
usePlatformStyles: true,
usePlatformScripts: true
我们从来没有看到 UI 加载指示器。
请指教。