Skip to content

Implement navigation args#21

Open
pxp9 wants to merge 3 commits intoprotolux-electronics:mainfrom
pxp9:impl-nav-args
Open

Implement navigation args#21
pxp9 wants to merge 3 commits intoprotolux-electronics:mainfrom
pxp9:impl-nav-args

Conversation

@pxp9
Copy link
Copy Markdown
Contributor

@pxp9 pxp9 commented Feb 15, 2026

This implements the arguments that will be passed to a screen, it also stores arguments from previous screens so it will go back to the same state.

For testing you should add these lines in top_level.ex

  # Insert Calendar after Weather with a test date (24 feb)
  test_date = Date.new!(2026, 2, 24)
  List.insert_at(@base_screens, 4, {Screen.Calendar, "Calendar", %{selected_date: test_date}})
  • implemented a custom param in calendar which opens the calendar in a specific date

Using default calendar , Lunar calendar.

When writing this is 15 February

image

@gworkman gworkman changed the title Impl nav args Implement navigation args Feb 17, 2026
Comment thread lib/name_badge/screen.ex Outdated
Comment thread lib/name_badge/screen.ex Outdated
pxp9 added 3 commits February 18, 2026 22:29
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
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

Successfully merging this pull request may close these issues.

2 participants