angular / angular/components

(Feature request) Custom template for autocomplete/select options

未关闭
#7,477 8 条评论 21 个 reaction 已指派 0 人 在 GitHub 查看
area: material/autocomplete area: material/select feature P4
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Bug, feature request, or proposal:
Feature request

#### What is the expected behavior?
Possibility to use autocomplete or select with custom templates to show styled options, like on Angular Material for AngularJS autocomplete [here](https://material.angularjs.org/1.0.2/demo/autocomplete).

Example:

![captura de tela 2017-10-02 as 14 04 42](https://user-images.githubusercontent.com/8621883/31091076-271bfade-a780-11e7-9be2-765812ac7fab.png)

#### What is the current behavior?
All options are shown using a single line option template.

#### What are the steps to reproduce?
It can be seen on the docs [here](https://material.angular.io/components/autocomplete/examples).

#### What is the use-case or motivation for changing an existing behavior?
Allowing the customization of the options for the autocomplete/select can help creating a better user experience.

贡献指南

打开贡献指南

调研方向

从链接的 Angular Material autocomplete 示例开始,并将其与此 issue 中描述的当前 autocomplete/select 行为进行比较。定义自定义范围,并验证 autocomplete 和 select 选项能够显示带样式的多行内容,同时保留其现有行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
frontend
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。