mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Revert "Adding XRM v8.2 features"
This reverts commit 65d062de61c4d7e014d73420c28e0999ab8f6c9d.
This commit is contained in:
Vendored
+123
-705
File diff suppressed because it is too large
Load Diff
+1
-26
@@ -75,8 +75,7 @@ Xrm.Utility.openQuickCreate("account").then(( object ) => { if (object) alert( `
|
||||
|
||||
/// Make all controls visible.
|
||||
|
||||
// Xrm.Page.ui.controls.forEach(( control ) => { control.setVisible( true ); }); // No longer works
|
||||
Xrm.Page.ui.controls.forEach((control: Xrm.Page.StandardControl) => { control.setVisible(true); }); // Must cast to StandardControl
|
||||
Xrm.Page.ui.controls.forEach(( control ) => { control.setVisible( true ); });
|
||||
|
||||
/// Make all tabs and sections visible.
|
||||
|
||||
@@ -167,28 +166,4 @@ autoCompleteControl.hideAutoComplete();
|
||||
|
||||
|
||||
|
||||
/// Demonstrate v8.2 quick form controls
|
||||
|
||||
const quickForm = Xrm.Page.ui.quickForms.get(0);
|
||||
quickForm.getControlType(); // == "quickform"
|
||||
quickForm.getName();
|
||||
quickForm.getParent();
|
||||
quickForm.getVisible(); // From UiCanSetVisibleElement
|
||||
quickForm.getLabel(); // From UiLabelElement
|
||||
quickForm.setLabel("Label"); // From UiLabelElement
|
||||
quickForm.refresh();
|
||||
|
||||
// Get standard control
|
||||
const ctrl = Xrm.Page.getControl<Xrm.Page.StandardControl>("controlName");
|
||||
ctrl.getControlType()
|
||||
ctrl.getName();
|
||||
ctrl.getParent();
|
||||
ctrl.getLabel();
|
||||
ctrl.setLabel("Label name");
|
||||
ctrl.getVisible();
|
||||
ctrl.setVisible(true);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user