NativeScript / NativeScript/angular

Support for NativeScript v9 sectioned ListView with Angular templates

未關閉
#158 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 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

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。