Is there any way to hide the button from mobile/ tablet view using an interface
Discussion posts and replies are publicly visible
You may use this function to determine if the screen is being opened in a mobile device - a!isNativeMobile()
showwhen:a!isNativeMobile()
Is it right ?
{ if(a!isNativeMobile(),{},a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL" ) }, align: "START" )) }
Because you want to hide it in mobile so it should be showWhen: not(a!isNativeMobile())
I want to hide month and week from mobile device
a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Hello", showWhen: a!isNativeMobile()<>true ) } )
I got an error
you have put the showwhen in the button parameter :)-> put it in the widget or after "Buttons"
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()),