@aappddeevv/dynamics-client-ui
Version:
## What is it? A library to help you create great dynamics applications.
26 lines (25 loc) • 968 B
TypeScript
/**
* Set of form utilities that overlap somewhat with
* business rules and other Dynamics non-code based
* configuration/customization features. You'll
* need to ensure that the onLoad handle is called
* so this module can obtain the proper form context.
* The "settings" are module wide so you can
* add as many "FormUtilities client" scripts to a form
* as you want.
*
* A FormUtilities client script would look like:
* ```
* import * as FUtils from "dynamics-client-ui/form/FormUtilities" // or wherever
* var cancellable = FUtils.add("rule1",
* // setRequired(predicate, attribute)
* FUtils.setRequired((fctx) =>
* fctx.getAttribute("new_yourfield").getValue() === null,
* "new_someotherfield"))
* ```
*/
import "../Dynamics";
/** A function to call remove a rule. */
export declare type Cancellable = () => void;
export declare function onLoad(ectx: any): void;
export declare function onLoadRunRules(ectx: any): void;