mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-13 17:42:18 +00:00
1.2 KiB
1.2 KiB
TabbedFeed
Represents a feed with tabs.
Note
This class extends the Feed class.
API
- TabbedFeed
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