Picker
Cho phép tạo giao diện cho phép người dùng chọn một lựa chọn trên từng cột dữ liệu
Properties
Picker
| Name | Type | Default | Description |
|---|---|---|---|
| value | { [columnName: string]: string | number } | Giá trị của Picker | |
| defaultValue | { [columnName: string]: string | number } | Giá trị mặc định của Picker | |
| title | string | Đặt title cho picker modal | |
| data | PickerDataType[] | Data cho Picker ứng với từng column | |
| defaultOpen | boolean | Mặc định mở picker modal hay không | |
| disabled | boolean | Vô hiệu hoá Picker input | |
| onChange | (value: {[name: string]: PickerColumnOption}) => void | Thêm event handler khi thay đổi lựa chọn | |
| onVisibilityChange | (visibilityState: boolean) => void | Thêm event handler khi picker modal thay đổi trạng thái mở/đóng | |
| formatPickedValueDisplay | (value: {[name: string]: PickerColumnOption}) => string | Format value lựa chọn hiển thị trên Input | |
| mask | boolean | Bật/tắt lớp overlay khi mở picker modal | |
| maskCloseable | boolean | Click ra ngoài lớp overlay để đóng | |
| action | PickerActionType | Thêm action button cho picker modal | |
| prefix | ReactNode | Prefix icon cho Input | |
| suffix | ReactNode | Suffix icon cho Input | |
| inputClass | string | thêm class cho Input | |
| label | string | Thêm Label hiển thị phía trên Input | |
| helperText | string | Helper text hiển thị phía dưới của field input. | |
| errorText | string | Text hiển thị khi status của field input là error | |
| status | InputStatus | Trạng thái của field input. Nhận các giá trị: success | error | |
| name | string | Thêm name cho input field | |
| placeholder | string | Thêm placeholder cho input trong trường hợp không có option nào đã được chọn |