Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon button size #22

Closed
VolkerLieber opened this issue Feb 1, 2024 · 1 comment
Closed

Icon button size #22

VolkerLieber opened this issue Feb 1, 2024 · 1 comment

Comments

@VolkerLieber
Copy link
Contributor

The documentation defines a size property for icon buttons: (https://ix.siemens.io/docs/controls/button/#properties-ix-icon-button)

The two possible ways, I could think of are:

  public enum IconButtonSize
  {
      _12 = 12,
      _16 = 16,
      _24 = 24
  }

and

/// <value>
///  12 | 16 | 24, default: 24
/// </value>
[Parameter]
public int Size { get; set; } = 24;

What would you prefer or do you know a better way?

@yagizhanNY
Copy link
Contributor

Hello @VolkerLieber, if it's possible we should always go with enums. In my opinion this is much more readable. Thanks for contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants