Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdbd0f4

Browse files
committed
Pass checked as parameter to Radio
1 parent55da942 commitfdbd0f4

File tree

1 file changed

+3
-3
lines changed
  • pgml-dashboard/src/components/inputs/radio

1 file changed

+3
-3
lines changed

‎pgml-dashboard/src/components/inputs/radio/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ impl RadioOption {
2424
}
2525
}
2626

27-
pubfnchecked(mutself) ->Self{
28-
self.checked =true;
27+
pubfnchecked(mutself,checked:bool) ->Self{
28+
self.checked =checked;
2929
self
3030
}
3131

@@ -53,7 +53,7 @@ impl Default for Radio {
5353
"test-radio",
5454
&[
5555
RadioOption::new("Enabled (recommended)".into(),1),
56-
RadioOption::new("Disabled".into(),0).checked(),
56+
RadioOption::new("Disabled".into(),0).checked(true),
5757
],
5858
)
5959
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp