ionic-team / ionic-team/ionic-framework
feat: Add 'picker' interface for ion-select component
- Ngôn ngữ chính
- TypeScript
- Star
- 52.7k
- Fork
- 13.3k
- Merge trung bình
- 1 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 51
Mô tả
# Feature Request
**Ionic version:**
[x] **4.x**
[x] **5.x**
**Describe the Feature Request**
It would be helpful if it were possible to use `ion-picker` as an interface for `ion-select`
**Describe Preferred Solution**
You could add a 4th value: (picker) for 'interface' property of ion-select.
`ion-select-option` could work as options for one-column picker.
If the picker options were in the template it would be easier apply Angular and custom pipes. At the same time, we could name the control to include into a form.
**Related Code**
This is an extract from one of my projects, changing the 'interface' property value:
``` html
{{ maint.start | date: 'shortDate' }} {{ maint.start | date: 'shortTime'}} - {{ maint.end | shortTime }}
Other schedule
```
I would like it to look like this

**Additional Context**
I find it hard to imagine how we could pass options for two or more columns, but it would be a great addition too.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by reading the ion-select and ion-picker component interfaces, focusing on how ion-select currently handles its interface property and how options are supplied. Done means ion-select can use interface="picker", render its ion-select-option children in a picker, and preserve form naming and Angular template bindings.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- angular, typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100