Skip to main content

13 replies

harshitb6843
September 30, 2022

You may use this function to determine if the screen is being opened in a mobile device - a!isNativeMobile()

September 30, 2022

showwhen:a!isNativeMobile()

Is it right ?

harshitb6843
September 30, 2022

Because you want to hide it in mobile so it should be showWhen: not(a!isNativeMobile())

amans0009
September 30, 2022

{
  if(a!isNativeMobile(),{},a!buttonArrayLayout(
    buttons: {
      a!buttonWidget(
        label: "Button",
        style: "NORMAL"
      )
    },
    align: "START"
  ))
}

September 30, 2022

I want to hide month and week from mobile device 

amans0009
September 30, 2022

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()),
  )
}
in buttonArraylayout

September 30, 2022

Thanks, Everyone for your replies [emoticon:4baf9c67c1b843c6b4ddedea33023652]