[SOLVED] Button radius

Answered
0
0

Hi!

How can I set the button radius? May you help me, please?

I’m trying:

.borda {
border-radius: 10px;
}

It is working for textbox and panel.

Thanks,
Ulisses.

  • You must to post comments
Best Answer
0
0

You can:

  1. Create a custom theme: see https://wisej.com/themes/ or
  2. Use a theme mixin to  modify only parts of any theme. or
  3. Use the StyleSheet extender for 1.5 or the CssClass property in 2.0 to set the name of your css class or
  4. In Wisej 2.0 set the css style directly in the CssStyle property.

This is what a theme mixin would look like:

Add MyTheme.mixin.theme in /Themes

{
  appearances:{
    "button":{
      "inherit":"button",
      "states":{
        "default":{
          "styles": {
            "radius": 5
          }
        }
      }
    }
  }
}

 

This is the CssStyle option:

this.button1.CssStyle=”border-radius:5px”;

This is the CssClass option:

this.button1.CssClass=”borda”;

 

  • Ulisses
    Great, Luca! Thank you very much!
  • You must to post comments
0
0

Any idea?

Thanks!

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.