UI5 / UI5/typescript

Type for `beforeShow` event of `sap.m.NavContainerChild` pseudo interface

Open
#518 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
213
Forks
35
Avg merge
37m
Merged PRs (30d)
1

Description

Hello and sorry for using this as a support forum.

How does one type the beforeShow sap.m.NavContainerChild event?

In the docs it is described as interface event but all samples show it being used only as a pseudo event using the addEventDelegate API.

Wrt. pseudo events: does a better way to type them out exist? JQuery.Event is not generic and I see only type casting as a way out.

Thanks and regards

Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the TypeScript typings and documentation for the sap.m.NavContainerChild beforeShow event, then compare the interface-event description with the addEventDelegate samples. Investigate how JQuery.Event is currently represented and determine a supported typing approach; done means the event can be typed without relying on an unexplained cast.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.