Skip to main content

@dialstack/sdk-dev / js/src / DialPlanHandle

Interface: DialPlanHandle

Defined in: sdk/js/src/types/dial-plan.ts:598

Imperative handle exposed via ref on the DialPlan component

Properties​

refreshResources​

TypeScript
refreshResources: (resourceIds?) => Promise<void>;

Defined in: sdk/js/src/types/dial-plan.ts:607

Fetch the resources the plan references again and update the nodes that show them, e.g. after the host let the user rename a target. Pass the IDs that may have changed to refetch only those; omit them to refetch every referenced resource. Does not mark the plan as changed.

Parameters​

resourceIds?​

string[]

Returns​

Promise<void>


save​

TypeScript
save: () => Promise<void>;

Defined in: sdk/js/src/types/dial-plan.ts:600

Trigger a save programmatically. Resolves when save succeeds, rejects on error.

Returns​

Promise<void>