Triggering namedAction on screen orientation

:
Is there any way of triggering a namedAction on a table if the screen orientation is changed from landscape to portrait?


Delfs:
yep,.https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation


Delfs:
It be something like: ( in onAppload et )

screen.orientation.addEventListener("change", function(e) {
  BF.namedAction('rotationHandler')
   // can add e.something to pass the details as 2nd arg if needed
);