API Reference
Command
New-HtmlXCalendar
Creates a FullCalendar instance and adds it to the DSL context.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
Example 1: Create a calendar with a couple of events.
New-HtmlXCalendar -WeekNumbers -NowIndicator {
New-HtmlXCalendarEvent -Title "Maintenance" -Start (Get-Date) -End (Get-Date).AddHours(2) -AllDay:$false
New-HtmlXCalendarEvent -Title "Release" -Start (Get-Date).AddDays(1)
}
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-HtmlXCalendar [-Content <ScriptBlock>] [-BusinessHours] [-ButtonIcons] [-DayMaxEventRows] [-Editable] [-InitialDate <DateTime>] [-NavLinks] [-NowIndicator] [-Selectable] [-SelectMirror] [-WeekNumberCalculation <string>] [-WeekNumbers] [<CommonParameters>]#Parameters
- Content ScriptBlock
- Scriptblock that emits calendar events.
- BusinessHours SwitchParameter
- Highlights business hours.
- ButtonIcons SwitchParameter
- Uses icons for button text.
- DayMaxEventRows SwitchParameter
- Limits rows per day with "more" links.
- Editable SwitchParameter
- Enables drag/drop event editing.
- InitialDate DateTime
- Sets the initial date displayed by the calendar.
- NavLinks SwitchParameter
- Enables navigation links on day/week names.
- NowIndicator SwitchParameter
- Shows a marker for the current time.
- Selectable SwitchParameter
- Allows date selection.
- SelectMirror SwitchParameter
- Mirrors selection while dragging.
- WeekNumberCalculation string
- Week number calculation mode.
- WeekNumbers SwitchParameter
- Shows week numbers.
Outputs
HtmlForgeX.FullCalendar