API Reference
Function
New-TableLanguage
Provides ability to overwrite texts available in the table.
Remarks
Provides ability to overwrite texts available in the table. This is useful for translating to different languages or choosing different naming.
Examples
EXAMPLE 1
New-HTML -TitleText "Example41 - Table" -FilePath "$PSScriptRoot\Example41.html" {
New-HTMLSection -HeaderText "Testing" -HeaderTextAlignment center -Content {
New-HTMLTable -DataTable $Values {
New-TableLanguage -Search 'Find' -PaginateFirst 'First Option' -EmptyTable 'No data in the table'
New-HTMLTableConditionGroup {
New-HTMLTableCondition -Name 'Test1' -Value 1 -ComparisonType number
New-HTMLTableCondition -Name 'Test2' -Value 2 -ComparisonType number
} -BackgroundColor Salmon -FailBackgroundColor Goldenrod -Logic OR -HighlightHeaders 'Test1', 'Test2', 'DisplayName', 'DomainName'
} -DataStore JavaScript
}
} -ShowHTML -Online
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
New-TableLanguage [-EmptyTable <String>] [-Info <String>] [-InfoFiltered <String>] [-PaginateFirst <String>] [-PaginateLast <String>] [-PaginateNext <String>] [-PaginatePrevious <String>] [-Search <String>] [-ZeroRecords <String>] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- EmptyTable String
- Overwrites the text when the table is empty. Default value is: "No data available in table"
- Info String
- Overwrites information about the table. Default value is: "Showing _START_ to _END_ of _TOTAL_ entries"
- InfoFiltered String
- Overwrites information about the table when filtered. Default value is: "(filtered from _MAX_ total entries)"
- PaginateFirst String
- Overwrites the text for the first page button. Default value is: "First"
- PaginateLast String
- Overwrites the text for the last page button. Default value is: "Last"
- PaginateNext String
- Overwrites the text for the next page button. Default value is: "Next"
- PaginatePrevious String
- Overwrites the text for the previous page button. Default value is: "Previous"
- Search String
- Overwrites the search text. Default value is: "Search:"
- ZeroRecords String
- Overwrites the text when no records match the search. Default value is: "No matching records found"