You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Provides options to manage the state of the Office context menu.
4805
+
*
4806
+
* To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands}.
* Represents an individual context menu control and its state.
4830
+
*
4831
+
* To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands}.
* Identifier of the context menu control as specified in the manifest.
4840
+
*/
4841
+
id: string;
4842
+
/**
4843
+
* Indicates whether the control is available on the context menu.
4844
+
*/
4845
+
enabled?: boolean;
4846
+
}
4847
+
/**
4848
+
* Represents the changes to the context menu.
4849
+
*
4850
+
* To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands}.
* Collection of context menu controls whose state is set using `Office.contextMenu.requestUpdate`.
4859
+
*/
4860
+
controls: ContextMenuControl[];
4861
+
}
4799
4862
/**
4800
4863
* Represents an individual control or command and the state it should have.
4801
4864
*
4802
4865
* @remarks
4803
4866
*
4804
-
* For code samples showing how to use a `Control` object and its properties, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
4867
+
* For code samples showing how to use a `Control` object and its properties, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
* Note that this API is only to request an update. The actual UI update to the ribbon is controlled by the Office application and hence the exact timing of the ribbon update (or refresh) cannot be determined by the completion of this API.
7243
7306
*
7244
-
* For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
7307
+
* For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
7245
7308
*
7246
7309
* @param input - Represents the updates to be made to the ribbon. Note that only the changes specified in the input parameter are made.
7247
7310
*/
@@ -7788,7 +7851,7 @@ declare namespace Office {
7788
7851
size: number;
7789
7852
}
7790
7853
/**
7791
-
* Represents an individual tab and the state it should have. For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
7854
+
* Represents an individual tab and the state it should have. For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
* Provides options to manage the state of the Office context menu.
4753
+
*
4754
+
* To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands}.
* Represents an individual context menu control and its state.
4778
+
*
4779
+
* To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands}.
* Identifier of the context menu control as specified in the manifest.
4788
+
*/
4789
+
id: string;
4790
+
/**
4791
+
* Indicates whether the control is available on the context menu.
4792
+
*/
4793
+
enabled?: boolean;
4794
+
}
4795
+
/**
4796
+
* Represents the changes to the context menu.
4797
+
*
4798
+
* To learn more, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands}.
* Collection of context menu controls whose state is set using `Office.contextMenu.requestUpdate`.
4807
+
*/
4808
+
controls: ContextMenuControl[];
4809
+
}
4747
4810
/**
4748
4811
* Represents an individual control or command and the state it should have.
4749
4812
*
4750
4813
* @remarks
4751
4814
*
4752
-
* For code samples showing how to use a `Control` object and its properties, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
4815
+
* For code samples showing how to use a `Control` object and its properties, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
* Note that this API is only to request an update. The actual UI update to the ribbon is controlled by the Office application and hence the exact timing of the ribbon update (or refresh) cannot be determined by the completion of this API.
7191
7254
*
7192
-
* For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
7255
+
* For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
7193
7256
*
7194
7257
* @param input - Represents the updates to be made to the ribbon. Note that only the changes specified in the input parameter are made.
7195
7258
*/
@@ -7736,7 +7799,7 @@ declare namespace Office {
7736
7799
size: number;
7737
7800
}
7738
7801
/**
7739
-
* Represents an individual tab and the state it should have. For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Enable and Disable Add-in Commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
7802
+
* Represents an individual tab and the state it should have. For code examples, see {@link https://learn.microsoft.com/office/dev/add-ins/design/disable-add-in-commands | Change the availability of add-in commands} and {@link https://learn.microsoft.com/office/dev/add-ins/design/contextual-tabs | Create custom contextual tabs}.
0 commit comments