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
* Displays an error, information, warning, or success notification for an app, and lets you specify actions to
20
19
* execute based on the notification.
21
-
* @param notification The notification object to add.
22
-
**/
23
-
addGlobalNotification(notification: AppNotification): Promise<undefined>;// TODO figure out if Promise is correct return value
20
+
* @param notification The notification object to add.
21
+
* @return On success, returns a promise object containing a GUID value to uniquely identify the notification as described earlier in the description of the successCallback parameter.
* Optional, lebel for action in message and function to execute when label is clicked
@@ -44,25 +38,23 @@ declare namespace Xrm {
44
38
* Defines the level of notification.
45
39
*/
46
40
level: LevelValue;
47
-
48
41
/**
49
-
*
42
+
* The message to display in the notification.
50
43
*/
51
44
message: string;
52
45
53
46
/**
54
-
* Indicates whether or not the user can close or dismiss the notification.
47
+
* Indicates whether or not the user can close or dismiss the notification.
55
48
* If you don't specify this parameter, users can't close or dismiss the notification by default.
56
49
*/
57
50
showCloseButton?: boolean;
58
51
59
52
/**
60
-
* Defines the type of notification. Currently, only a value of 2 is supported,
53
+
* Defines the type of notification. Currently, only a value of 2 is supported,
61
54
* which displays a message bar at the top of the app.
62
55
*/
63
56
type: Number;
64
57
}
65
-
66
58
interfaceAppAction{
67
59
68
60
/**
@@ -73,24 +65,17 @@ declare namespace Xrm {
73
65
/**
74
66
* Function reference. The function to execute when the action label is clicked.
75
67
*/
76
-
eventHandler?: Function;
77
-
78
-
68
+
eventHandler?: Function;
79
69
}
80
-
81
70
constenumLevelValue{
82
71
Succes=1,
83
72
Error=2,
84
73
Warning=3,
85
-
Information=4,
86
-
74
+
Information=4,
87
75
}
88
-
89
-
//TODO figure out how to implement the app side pane https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-app-appsidepane
76
+
//TODO figure out how to implement the app side pane https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-app-appsidepane
90
77
// should the methods take an input like paneID?
91
-
92
-
interfaceAppSidePane{
93
-
78
+
interfaceAppSidePane{
94
79
/**
95
80
* Closes the side pane and removes it from the side bar.
96
81
*/
@@ -106,10 +91,7 @@ declare namespace Xrm {
106
91
*/
107
92
navigate(): any;
108
93
}
109
-
110
94
interfaceSidePanes{
111
-
112
-
//TODO figure out if Object is a correct return type, make type any
113
95
/**
114
96
* Provides all the information to create side panes.
115
97
*/
@@ -124,15 +106,11 @@ declare namespace Xrm {
124
106
* returns the appSidePane object
125
107
*/
126
108
getPane(paneId: string): Object;
127
-
128
109
/**
129
110
* returns the appSidePane object
130
111
*/
131
112
getSelectedPane(): Object;
132
-
133
-
134
113
}
135
-
136
114
interfaceSidePaneOptions{
137
115
138
116
/**
@@ -164,12 +142,12 @@ declare namespace Xrm {
164
142
* When set to false, the created pane is not selected and leaves the existing pane selected.
165
143
* It also does not expand the pane if collapsed.
166
144
*/
167
-
isSelected?: Number;
145
+
isSelected?: boolean;
168
146
169
147
/**
170
148
* The width of the pane in pixels.
171
149
*/
172
-
width?: boolean;
150
+
width?: number;
173
151
174
152
/**
175
153
* Hides the pane and tab.
@@ -185,7 +163,6 @@ declare namespace Xrm {
185
163
* Prevents the badge from getting cleared when the pane becomes selected.
186
164
*/
187
165
keepBadgeOnSelect?: boolean;
188
-
189
166
}
190
167
191
168
/**
@@ -198,11 +175,8 @@ declare namespace Xrm {
198
175
* @param url URL of the page to be loaded in the side pane static area.
199
176
* @param title Title of the side pane static area.
200
177
*/
201
-
loadPanel(url: string,title: string): any;
202
-
//TODO Not sure this should return void, use any and test
0 commit comments