Skip to main content

Class: OEmbedElement

Renders embeds from <o-embed url=""> tags

slot - Directly pass through child contents to bottom of embed, optional.

Hierarchy#

  • LitElement

    OEmbedElement

Constructors#

constructor#

new OEmbedElement()

Inherited from#

LitElement.constructor

Defined in#

node_modules/lit-element/lib/updating-element.d.ts:274

Properties#

allowfullscreen#

allowfullscreen: string | boolean = 'true'

For YouTube only. Passing anything other than 1/true omits the tag.

Defined in#

src/OEmbedElement.ts:61


frameborder#

frameborder: string = '0'

Pass-through of frameborder attribute, only used in iframe embeds.

Defined in#

src/OEmbedElement.ts:57


height#

height: string = '315'

Pass-through of height attribute

Defined in#

src/OEmbedElement.ts:53


provider#

provider: Provider

Defined in#

src/OEmbedElement.ts:64


url#

url: string

The URL or ID (if supported)

Defined in#

src/OEmbedElement.ts:45


width#

width: string = '560'

Pass-through of width attribute

Defined in#

src/OEmbedElement.ts:49


edPuzzleDefaultDimensions#

Static edPuzzleDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:304


loomDefaultDimensions#

Static loomDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:388


vimeoDefaultDimensions#

Static vimeoDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:221


wistiaDefaultDimensions#

Static wistiaDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:346

Methods#

calculateDefaultDimensions#

calculateDefaultDimensions(__namedParameters?): Dimensions

Parameters#

NameType
__namedParametersObject
__namedParameters.defaults?Dimensions

Returns#

Dimensions

Defined in#

src/OEmbedElement.ts:171


getDefaultDimensions#

getDefaultDimensions(provider?): Dimensions

Parameters#

NameType
provider?Provider

Returns#

Dimensions

Defined in#

src/OEmbedElement.ts:146


instanceStyle#

instanceStyle(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:66


render#

render(): TemplateResult

Returns#

TemplateResult

Overrides#

LitElement.render

Defined in#

src/OEmbedElement.ts:85


renderDailyMotion#

renderDailyMotion(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:187


renderEdPuzzle#

renderEdPuzzle(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:311


renderIframe#

renderIframe(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:289


renderLoom#

renderLoom(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:395


renderSpotify#

renderSpotify(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:127


renderVimeo#

renderVimeo(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:228


renderWistia#

renderWistia(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:353


renderYouTube#

renderYouTube(): TemplateResult

Returns#

TemplateResult

Defined in#

src/OEmbedElement.ts:260