-
-
Notifications
You must be signed in to change notification settings - Fork 115
Tablecolumnoptions #138
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
Merged
Merged
Tablecolumnoptions #138
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PrzemyslawKlys
requested changes
Jul 25, 2020
Member
PrzemyslawKlys
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works great. Couple of small fixes that I would like before approval. Thank you a lot for your contribution. It makes me feel that PSWriteHTML is getting somewhere when people submit their own PRs to it.
PrzemyslawKlys
added a commit
that referenced
this pull request
Jul 27, 2020
Member
|
I've formatted some code and fixed the $null side. Great work! |
zsoch
pushed a commit
to zsoch/PSWriteHTML-1
that referenced
this pull request
Jul 28, 2020
zsoch
added a commit
to zsoch/PSWriteHTML-1
that referenced
this pull request
Jul 28, 2020
This reverts commit b49ee5f.
zsoch
added a commit
to zsoch/PSWriteHTML-1
that referenced
this pull request
Jul 28, 2020
* Revert "Update" This reverts commit 3e79447. * Revert "Update JustGate" This reverts commit 1ef586d. * Revert "Removed dead js code" This reverts commit bc68d38. * Revert "EvotecIT#138 small formatting fixes" This reverts commit b49ee5f. * Revert "Updated example to use psd1 file" This reverts commit 60dbbfa. * Revert "Reworked cmdlet, added additional documentation, optimized column definitions" This reverts commit ddafb44. * Revert "Add aliases for ordering" This reverts commit f6915f9. * Revert "" This reverts commit 101004d. * Revert "" This reverts commit 1818c04. * Revert "" This reverts commit 119792a. * Revert "" This reverts commit 8f5c726. * Revert "" This reverts commit bd96ccf. * Revert "" This reverts commit c91d72f. * Revert "fixed bug" This reverts commit 38dfa21. * Revert "add column option" This reverts commit 455b7a7.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added new command New-HTMLTableColumnOption to configure some of the properties within columnDef within the HTML block of New-HTMLTable
Set all columns to hidden (-AllColumns must be used last) and show the first colum. This also doesn't impact conditional formatting.
New-TableColumnOption -ColumnIndex 0 -Hidden $falseNew-TableColumnOption -AllColumns -Hidden $trueSet the first 3 columns to have smaller width and the 4th column to take up 100%
New-TableColumnOption -ColumnIndex (0..2) -Width 50New-TableColumnOption -ColumnIndex 3 -Width "100%"Only allow searching the first column
New-TableColumnOption -ColumnIndex 0 -Searchable $trueNew-TableColumnOption -AllColumns -Searchable $falseOnly allow columns 1, 3, 5 to be sortable
New-TableColumnOption -ColumnIndex 0,2,4 -Sortable $trueNew-TableColumnOption -AllColumns -Sortable $falseSee:
https://datatables.net/reference/option/columnDefs