Chuyển tới nội dung chính

Radio

Cú pháp

<zmp-radio> <zmp-list-item radio>

Radio Properties

PropTypeDefaultDescription
labelstringRadio label
namestring | numberRadio input name
valuestring |number | booleanRadio input value
disabledbooleanVô hiệu hóa radio input
readonlybooleanReadonly radio input
labelstringRadio label
radio-iconstringendVị trí hiển thị icon radio. Có thể chứa 2 giá trị: "start" hoặc "end"

Radio Events

EventDescription
@changeEvent 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!