Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a typed view in SAP UI5 typescript #422

Open
swayongshen opened this issue Nov 16, 2023 · 1 comment
Open

How to create a typed view in SAP UI5 typescript #422

swayongshen opened this issue Nov 16, 2023 · 1 comment

Comments

@swayongshen
Copy link

swayongshen commented Nov 16, 2023

** IMPORTANT **
This tracker is for issues caused by the tools maintained here (type definition generator and ts-interface generator for control development support).
But if the bug is within the original OpenUI5/SAPUI5 code/JSDoc, then please report the issue there!

Example: if a UI5 API is defined wrongly in the TypeScript type definitions but the same wrong definition can also be found in the UI5 API documentation, then the issue originates probably from the JSDoc inside the UI5 code, from which both are generated, and needs to be reported in the OpenUI5 issue tracker or the one for SAPUI5, respectively.

Describe the bug
Seeking resources to learn how to create a typed view in order to do XML processing for conditional rendering (<template:if> <template:else>). Currently all tutorials are referencing the JS way to do it

@akudev
Copy link
Contributor

akudev commented Dec 20, 2023

Sorry for the delay, I was a bit confused by how typed views are related to XML preprocessing, as typed views are JSViews and the preprocessing applies to XMLViews.

But the UI5 2.x guidelines say "use typed views when using JSViews", so a sample should indeed be provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants