I want to implement a simple example, for to understand the flyout, but for the moment has been unsuccess
Introducing Flyouts in Client Script!
Flyouts are floating User Interface that can be spawned and controlled using Client Script. Presently, Widgets can be used to render a flyout. The flyout can run independently and any Client Script can communicate with it. Also, it can be made to wait for user input and transport back the data to the Client Script.
View Code
I see the following code:
ZDK.Client.createFlyout('myFlyout', { header: 'Shipment Charges', animation_type: 2, height: '400px', width: '420px', top: 'center', right: '0' });
ZDK.Client.getFlyout('myFlyout').open({ api_name: 'widget_api_name', type: 'widget' });
var response = ZDK.Client.getFlyout('myFlyout').notify({ data: value }, { wait: true });
ZDK.Client.getFlyout('myFlyout').close();
log('??? ', response);
But when i try to run, the console show me :