MCPcopy Create free account
hub / github.com/microsoft/SandDance / Component

Interface Component

extensions/azdata-sanddance/src/azdata.proposed.d.ts:2786–2820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2784 }
2785
2786 export interface Component {
2787 readonly id: string;
2788
2789 /**
2790 * Sends any updated properties of the component to the UI
2791 *
2792 * @returns Thenable that completes once the update
2793 * has been applied in the UI
2794 */
2795 updateProperties(properties: { [key: string]: any }): Thenable<void>;
2796
2797 /**
2798 * Sends an updated property of the component to the UI
2799 *
2800 * @returns Thenable that completes once the update
2801 * has been applied in the UI
2802 */
2803 updateProperty(key: string, value: any): Thenable<void>;
2804
2805 enabled: boolean;
2806 /**
2807 * Event fired to notify that the component's validity has changed
2808 */
2809 readonly onValidityChanged: vscode.Event<boolean>;
2810
2811 /**
2812 * Whether the component is valid or not
2813 */
2814 readonly valid: boolean;
2815
2816 /**
2817 * Run the component's validations
2818 */
2819 validate(): Thenable<boolean>;
2820 }
2821
2822 export interface FormComponent {
2823 component: Component;

Callers 5

buildFunction · 0.65
sanddance-app.jsFile · 0.65
sanddance.jsFile · 0.65
buildFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected