| Summary: | Support model.index and friends | ||
|---|---|---|---|
| Product: | [Unmaintained] QmlWeb | Reporter: | Thomas McGuire <mcguire> |
| Component: | QML-Parser | Assignee: | Anton Kreuzkamp <akreuzkamp> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
This project is unfortunately no longer maintained. If a new maintainer wants to step up and take care, the project is archived here: https://invent.kde.org/unmaintained/qmlweb You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived. Sorry for the inconveniences. |
"model.index" is an alias for "index" that Repeaters and ListViews attach to their delegate. Right now QmlWeb only knows "index". This also applies to ListModels: ListModel { id: fruitModel ListElement { name: "Apple" cost: 2.45 } } Here, both "model.name" and "name" is available to the delegates. The same is true for "model.modelData" vs "modelData" when using e.g. JS arrays as model. Reproducible: Always