Is there any way to hide the button from mobile/ tablet view using an interface
Discussion posts and replies are publicly visible
{ if(a!isNativeMobile(),{},a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL" ) }, align: "START" )) }
I want to hide month and week from mobile device
if those two buttons are in same buttonarrayLayout then you can put showWhen:not(a!isNativeMobile())
{ a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL" ), a!buttonWidget( label: "Button", style: "NORMAL" ) }, align: "START", showWhen: not(a!isNativeMobile()), ) }
will it work with the button widget ?
a!buttonWidget( label: "Button", style: "NORMAL" ), showWhen: not(a!isNativeMobile()),
Yes. It will. You will have to add the showWhen inside the button widget.
a!buttonWidget( label: "Button", style: "NORMAL", showWhen: not(a!isNativeMobile()) )
Okay