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

Add PageNumber by Section methods in PageContext and Dynamic #482

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

simusr2
Copy link
Contributor

@simusr2 simusr2 commented Feb 7, 2023

I needed to do checks based on page number in the section context writing Dynamic components.

In particular i need to check, in a Dynamic component placed in the body of the page, if the current page is the first or the last one of current section.

To avoid duplication of logic I created PageNumber by section methods in PageContext and then called them from TextExtensions (already existing methods) and in Dynamic (new methods).

This PR satisfies #469 discussion.

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.

None yet

1 participant