You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the legacy RetailSDK, when creating custom views, we extended the ExtensionViewControllerBase abstract class.
This class had some useful properties:
An instance of INumPadInputBroker which allowed embedding a NumPad control to the view and have the NumPad responsive (intercept) to keyboard input
A property called isBackNavigationEnabled inherited from extending DisposableViewControllerBase which removes the "back" button.
With the new CommerceSDK, the requirement is to extend CustomViewControllerBase abstract class instead. On first glance, it seems like it has less features compared to legacy.
Is there any way to support a NumPad control (with an input broker)?
Is there any way to implement the the isBackNavigationEnabled control?
The official sample extension for the InStore.BarcodeMsrDialogSample (class: BarcodeMsrDialog.ts) utilizes IAlphanumericNumPad but this is for a dialog (not a view) which extends from ExtensionTemplatedDialogBase which is a class that provides the implementation of an input broker "for free" -- no need for the extension code to initialize it
I've tried various things to get the NumPad to display and behave properly for a view. I'm able to get the NumPad to display but it does not respond to keyboard input (I think this is due to malformed input broker that I'm trying to initialize in my view).
Here is the screenshot of this hierarchy for ExtensionViewControllerBase:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the legacy RetailSDK, when creating custom views, we extended the
ExtensionViewControllerBase
abstract class.This class had some useful properties:
INumPadInputBroker
which allowed embedding a NumPad control to the view and have the NumPad responsive (intercept) to keyboard inputisBackNavigationEnabled
inherited from extendingDisposableViewControllerBase
which removes the "back" button.With the new CommerceSDK, the requirement is to extend
CustomViewControllerBase
abstract class instead. On first glance, it seems like it has less features compared to legacy.isBackNavigationEnabled
control?IAlphanumericNumPad
but this is for a dialog (not a view) which extends fromExtensionTemplatedDialogBase
which is a class that provides the implementation of an input broker "for free" -- no need for the extension code to initialize itHere is the screenshot of this hierarchy for
ExtensionViewControllerBase
:Beta Was this translation helpful? Give feedback.
All reactions