API Reference
Function
New-HTMLAccordion
Creates a new HTML accordion element with customizable options.
Remarks
This function creates a new HTML accordion element with the specified accordion item content, duration of animation, and option to collapse on click.
Examples
EXAMPLE 1
New-HTMLAccordion -AccordionItem { "Accordion Content Here" } -Duration 500 -CollapseOnClick
Creates a new HTML accordion with the specified content, animation duration of 500 milliseconds, and collapses on click.
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-HTMLAccordion [-AccordionItem <ScriptBlock>] [-CollapseOnClick] [-Duration <Int32>] [<CommonParameters>]
#
Parameter set:
All Parameter SetsParameters
- AccordionItem ScriptBlock
- Specifies the content of the accordion item as a script block.
- CollapseOnClick SwitchParameter
- Indicates whether the accordion should collapse when clicked.
- Duration Int32
- Specifies the duration of the accordion animation in milliseconds.