[SOLVED] numericUpDown buttons visibility

Answered Closed
0
0

Hi! is possible to hide the up and down buttons in numericUpDown control?

Thanks,

Mariano

  • You must to post comments
Best Answer
0
0

Yes, it’s in the theme.

You can either create a custom theme, or add a mixin. Try this:

 

{
 "name": "MixinTheme",
 "appearances": {
   "nobuttons-spinner": {
     "inherit": "spinner",
     "components": {
       "upbutton": {
         "states": {
           "default": {
             "properties": {
               "visibility": "excluded"
             }
           }
         }
       },
       "downbutton": {
         "states": {
           "default": {
             "properties": {
               "visibility": "excluded"
             }
           }
          }
        }
      }
    }
  }
}

 

Now you can set the AppearanceKey property to “nobutton-spinner” to hide the buttons.

HTH

Best,

Luca

  • Luca (ITG)
    Name the file MyMixin.mixin.theme and place it under /Themes.
  • Mariano
    Thanks Luca, it works like a charm. Regards, Mariano
  • You must to post comments
Showing 1 result