NativeScript / NativeScript/angular
Support for NativeScript v9 sectioned ListView with Angular templates
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 55
- 派生
- 13
- 平均合并
- 16 分钟
- 30 天内合并 PR
- 1
描述
Is your feature request related to a problem? Please describe.
NativeScript 9 introduced native sectioned ListView support with sticky headers (Announcement). This feature is not yet supported with @nativescript/angular templates.
Describe the solution you'd like
Support for Angular templates in sectioned ListView:
<ListView sectioned="true" stickyHeader="true" [items]="sections">
<ng-template nsTemplateKey="header" let-section>
<Label [text]="section.title"></Label>
</ng-template>
<ng-template nsTemplateKey="item" let-item>
<Label [text]="item.name"></Label>
</ng-template>
</ListView>
Describe alternatives you've considered
Flattening sections into a single array with type discriminator and using itemTemplateSelector, but this loses native sticky header behavior.
Additional context
- @nativescript/core: 9.x
- @nativescript/angular: 20.0.0, 21.0.0-rc0
- iOS / Android
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 @nativescript/angular 的 ListView 模板集成开始,并比较 item 模板的 nsTemplateKey 值是如何处理的。在 iOS 和 Android 上使用 NativeScript core 9.x 验证 sectioned 和 sticky-header 示例;完成的标准是两个 Angular 模板都能以原生 section header 和 sticky-header 行为进行渲染。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend, mobile-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100