Skip to content

Context back() and canBack() implementation - #443

Merged
devnatan merged 17 commits into
mainfrom
feat/history
Sep 12, 2023
Merged

Context back() and canBack() implementation#443
devnatan merged 17 commits into
mainfrom
feat/history

Conversation

@devnatan

@devnatan devnatan commented Aug 22, 2023

Copy link
Copy Markdown
Owner

This feature was available in v2 as experimental but was removed in v3+ and is now back.

Possible usage will be documeneted on Wiki
History is controlled by context's open* and close*. Do not support Shared Contexts for now.

Closes #277
Fixes #461
Fixes #451

onResume(...) calls will be implemented later.

canBack can be combined with displayIf to create a "go back" item

firstSlot(new ItemStack(Material.ARROW))
    .displayIf(Context::canBack)
    .onClick(Context::back);

Navigating Between Views docs should be rewritten before v3.0.0-rc.3

@devnatan devnatan added this to the Release v3.0.0-rc.3 milestone Aug 22, 2023
@devnatan devnatan self-assigned this Aug 22, 2023
@devnatan devnatan added the feature New feature or enchancement label Aug 22, 2023
@devnatan devnatan changed the title History The History state feature Aug 22, 2023
@devnatan
devnatan marked this pull request as ready for review September 12, 2023 02:40
@devnatan devnatan changed the title The History state feature Context back() and canBack() implementation Sep 12, 2023
@devnatan
devnatan merged commit 0aae211 into main Sep 12, 2023
@devnatan
devnatan deleted the feat/history branch September 12, 2023 02:58
@luiz-otavio

Copy link
Copy Markdown
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or enchancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Close viewer inventory before transition there is no back in slotcontext Check context history availability

2 participants