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

[Parameter] public EventCallback<int> OnChange { get; set; } #3748

Open
icetech233 opened this issue Mar 21, 2024 · 6 comments
Open

[Parameter] public EventCallback<int> OnChange { get; set; } #3748

icetech233 opened this issue Mar 21, 2024 · 6 comments

Comments

@icetech233
Copy link

OnChange 怎么绑定 C#的代码, Onclick可以的

@ElderJames
Copy link
Member

Thanks for contacting us @icetech233 , which component are you using?

@icetech233
Copy link
Author

Thanks for contacting us @icetech233 , which component are you using?

RadioGroup 的 OnChange事件怎么写,一直报错

普通button的onclick事件是可以的, 我看定义是差不多的

@ElderJames
Copy link
Member

需要指定泛型类型 TValue="int"

@icetech233
Copy link
Author

需要指定泛型类型 TValue="int"

还真的有个这个 TValue

@icetech233
Copy link
Author

https://antblazor.com/zh-CN/components/radio

我觉得还是文档改一下, 都没有看到这个东西

@icetech233
Copy link
Author

示例代码也没有提到这个 TValue

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