New NotionHeader - fasteiner/Notion GitHub Wiki


Category: Commands external help file: Notion-help.xml Module Name: Notion online version: https://developers.notion.com/reference/create-a-database schema: 2.0.0 Type: Command

New-NotionHeader

SYNOPSIS

Creates a new Notion header.

SYNTAX

New-NotionHeader [-Text] <String> [[-Color] <notion_color>] [-Level] <Int32> [[-is_toggleable] <Boolean>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

The New-NotionHeader function creates a new header for a Notion page with specified text, color, level, and toggleable option.

EXAMPLES

EXAMPLE 1

New-NotionHeader -Text "My Header" -Level 1

Creates a level 1 header with the text "My Header" and default color.

EXAMPLE 2

New-NotionHeader -Text "My Header" -Color "blue" -Level 2 -is_toggleable $true

Creates a level 2 header with the text "My Header", blue color, and toggleable option enabled.

PARAMETERS

-Color

The color of the header. This parameter is optional and defaults to "default".

Type: notion_color
Parameter Sets: (All)
Aliases:
Accepted values: blue, blue_background, brown, brown_background, default, gray, gray_background, green, green_background, orange, orange_background, pink, pink_background, purple, purple_background, red, red_background, yellow, yellow_background

Required: False
Position: 2
Default value: Default
Accept pipeline input: False
Accept wildcard characters: False

-is_toggleable

Specifies if the header is toggleable. This parameter is optional.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Level

The level of the header (1-3). This parameter is mandatory.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Text

The text of the header. This parameter is mandatory.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️