framework7io / framework7io/framework7
Option for default detail view (MasterDetail)
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.8k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
When master detail loads it displays a blank page for detail. There doesn't appear to be a trivial way to load a default view.
Describe the solution you'd like
Addition of a "defaultDetail" property to the master route or a "default" (boolean) property on routes within detailRoutes.
Describe alternatives you've considered
Detecting and re-directing during componentDidMount and render on the master view are difficult to make work because the navigate has not completed and the route object passed is the route to the master.
beforeEnter on the master route has a similar issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the MasterDetail implementation and how the master route and detailRoutes are processed. Compare the proposed defaultDetail property with a default boolean on detail routes, then verify that a default detail view loads instead of a blank page and that existing navigation behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100