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

Implement more use cases for page select #27

Open
wants to merge 1 commit into
base: prelux/main
Choose a base branch
from

Conversation

Joshpolansky
Copy link
Member

This PR creates new tmplits for page select that aren't the default li a used inside a nav.

It also changes the current tmplit to a smarter one to decide which to used based on what the user supplies. By default, the behavior of old applications should be the same.

Copy link
Member

@sclaiborne sclaiborne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of questions:

  1. Would you recommend the use of 'PageSelect' going forward or is that now their to support backwards compatibility?
  2. Is there some documentation? I am coming into tmplit fairly green. If there is some documentation I might be a good candidate to provide feedback on documentation and API clarity

{{#tmplit 'MultiSelect' maxColumns=10 data-var-name="tmplitTest:tmplit.MultiSelect_INT" data-var-name-field="tmplitTest:tmplit.MultiSelect_STRING"}}
{{#tmplit 'MultiSelect' maxColumns=11 data-var-name="tmplitTest:tmplit.MultiSelect_INT" data-var-name-field="tmplitTest:tmplit.MultiSelect_STRING"}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does maxColumns mean?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case it's the number of buttons in a column before wrapping

@Joshpolansky
Copy link
Member Author

Joshpolansky commented Dec 6, 2023

Just a couple of questions:

  1. Would you recommend the use of 'PageSelect' going forward or is that now their to support backwards compatibility?

I think you could still use PageSelect still, but it will do smarter things in the background. I think in most cases someone would want to use a specific one based on what they are putting the page select in.

  1. Is there some documentation? I am coming into tmplit fairly green. If there is some documentation I might be a good candidate to provide feedback on documentation and API clarity

Here are the docs for this. Looks like it doesn't include context yet
https://loupeteam.github.io/LoupeDocs/libraries/tmplitdocs/tmplitcomponents/pagelayout.html

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