Radio
Cú pháp
<zmp-radio> <zmp-list-item radio>
Radio Properties
| Prop | Type | Default | Description |
|---|---|---|---|
| label | string | Radio label | |
| name | string | number | Radio input name | |
| value | string |number | boolean | Radio input value | |
| disabled | boolean | Vô hiệu hóa radio input | |
| readonly | boolean | Readonly radio input | |
| label | string | Radio label | |
| radio-icon | string | end | Vị trí hiển thị icon radio. Có thể chứa 2 giá trị: "start" hoặc "end" |
Radio Events
| Event | Description |
|---|---|
| @change | Event sẽ được triggered khi trạng thái của radio input thay đổi |
Radios List
Ngoài ra có thể sử dụng List và ListItem để render Radio
Code demo fallback when rendering server side!
Ví dụ
Code demo fallback when rendering server side!