Abstract Material Handling Library Setup
Inserting A System
In a Library, we usually use a SnapperLimb
to allow users to insert Snappers
via buttons. However, within the material handling abstract, instead of directly passing a Snapper
to the SnapperLimb
, you must provide a specific SnapperSpawner
corresponding to your [[hybrid-types#Row|row]] snapper to establish a [[hybrid-types#System|system]] of rows. This SnapperSpawner
is passed to the SnapperLimb
with the spawner
parameter as shown.
SnapperLimb(root, #:package, "UniqueSnapperKey", spawner=ExampleRowSnapperSpawner());
Opening the Configuration
In Abstract Material Handling, a user must usually be allowed to open the configuration dialog. The configuration dialog is opened with the method mhStorageShowConfigurationDialog
, which takes a package
. The dialog will be populated by the MhSystemConfiguration
registered to the given package.
mhStorageShowConfigurationDialog(#:package);
To add a button to the library which opens the configuration, we need to create a VoidCallbackLimb
to call the mhStorageShowConfigurationDialog
.
VoidCallbackLimb(root, pkg, "configurator", label=$mhConfigurator, callback=f() {mhStorageShowConfigurationDialog(#:package);});
Comments
0 comments
Please sign in to leave a comment.