-
Notifications
You must be signed in to change notification settings - Fork 25
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
More PagerTagHelper attributes #9
Comments
these seem like reasonable ideas. I had not looked at materializecss before but it looks like a nice alternative to bootstrap and I do think this project should be able to support that. seems like their 3 states active, not active, and disabled map to ours like this: IsCurrent = their active |
I've just added support in the source code for LiOtherCssClass which would map to their not active, not disabled Adding support for markup for next/prev I think we will have to check if the PaginationLink text matches the NextPageText/PrevPageText and then check for other new properties to see if override markup was provided, in which case we would just use that inside the li lement instead of adding an a element |
Commenting on this point: "In cs-previous-page-text & cs-next-page-text the ability to use HTML" This is some code out of, PagerTagHelper.cs. For example, when you use HTML in the cs-previous-page-text attribute. It would use the Append() method. If it would use the AppendHtml() method then it would display the HTML correct. I am not sure what the best way to go is. Append() encodes the text so HTML attributes are encoded, but if you would do AppendHtml() instead of Append() then HTML would not be encoded anymore so real HTML is shown. This seems to me like a design decision for you, or some extra attribute could be added so that text would append as HTML instead of the Append() that encodes HTML.
|
I've just published a nuget that should support this though I have not tried it with the needed css it appears to render the desired markup. Might take a few minutes before that nuget is indexed and available but it should work like this:
|
you are still using rc1/dnx, you need to install rc2 from http://dot.net |
Okay, I see. Unfortunately I can't upgrade to rc2, because I am using this project on a school project where we are using rc1. |
seems like if the project is educational then upgrading and dealing with the breaking changes would be a good learning exercise. rc1 was really more like beta9 and there are lots of breaking changes but also a lot of fixed bugs in rc2 |
It would be nice to have these extra features:
The text was updated successfully, but these errors were encountered: