addTabStateChange & removeTabStateChange added

This commit is contained in:
Tim Zech
2019-04-08 13:48:04 +02:00
committed by GitHub
parent d747a6b36e
commit bf5073f62e
+12
View File
@@ -3270,6 +3270,12 @@ declare namespace Xrm {
* @see {@link UiFocusable}
*/
interface Tab extends UiStandardElement, UiFocusable {
/**
* Adds a function to be called when the TabStateChange event occurs.
* @param handler The function to be executed on the TabStateChange event.
*/
addTabStateChange(handler: Events.ContextSensitiveHandler): void;
/**
* Gets display state of the tab.
* @returns The display state, as either "expanded" or "collapsed"
@@ -3288,6 +3294,12 @@ declare namespace Xrm {
*/
getParent(): Ui;
/**
* Removes a function to be called when the TabStateChange event occurs.
* @param handler The function to be removed from the TabStateChange event.
*/
removeTabStateChange(handler: Events.ContextSensitiveHandler): void;
/**
* Sets display state of the tab.
* @param displayState Display state of the tab, as either "expanded" or "collapsed"