Files
YouTube.js/docs/API/tabbed-feed.md

1.2 KiB

TabbedFeed

Represents a feed with tabs.

Note

This class extends the Feed class.

API

tabs

Returns the feed's tabs as an array of strings.

Returns: string[]

getTabByName(title: string)

Fetches a tab by its title.

Returns: Promise<TabbedFeed<T>>

Param Type Description
title string The title of the tab to get

getTabByURL(url: string)

Fetches a tab by its URL.

Returns: Promise<TabbedFeed<T>>

Param Type Description
url string The URL of the tab to get

hasTabWithURL(url: string)

Returns whether the feed has a tab with the given URL.

Returns: boolean

Param Type Description
url string The URL to check

title

Returns the currently selected tab's title.

Returns: string | undefined