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/reactive-element/reactive-element.d.ts:487

Properties#

allowfullscreen#

allowfullscreen: string | boolean = 'true'

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

Defined in#

src/OEmbedElement.ts:62


frameborder#

frameborder: string = '0'

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

Defined in#

src/OEmbedElement.ts:58


height#

height: string = '315'

Pass-through of height attribute

Defined in#

src/OEmbedElement.ts:54


provider#

provider: Provider

Defined in#

src/OEmbedElement.ts:65


url#

url: string

The URL or ID (if supported)

Defined in#

src/OEmbedElement.ts:46


width#

width: string = '560'

Pass-through of width attribute

Defined in#

src/OEmbedElement.ts:50


edPuzzleDefaultDimensions#

Static edPuzzleDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:305


loomDefaultDimensions#

Static loomDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:389


vimeoDefaultDimensions#

Static vimeoDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:222


wistiaDefaultDimensions#

Static wistiaDefaultDimensions: Dimensions

Defined in#

src/OEmbedElement.ts:347

Methods#

calculateDefaultDimensions#

calculateDefaultDimensions(__namedParameters?): Dimensions

Parameters#

NameType
__namedParametersObject
__namedParameters.defaults?Dimensions

Returns#

Dimensions

Defined in#

src/OEmbedElement.ts:172


getDefaultDimensions#

getDefaultDimensions(provider?): Dimensions

Parameters#

NameType
provider?Provider

Returns#

Dimensions

Defined in#

src/OEmbedElement.ts:147


instanceStyle#

instanceStyle(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:67


render#

render(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Overrides#

LitElement.render

Defined in#

src/OEmbedElement.ts:86


renderDailyMotion#

renderDailyMotion(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:188


renderEdPuzzle#

renderEdPuzzle(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:312


renderIframe#

renderIframe(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:290


renderLoom#

renderLoom(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:396


renderSpotify#

renderSpotify(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:128


renderVimeo#

renderVimeo(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:229


renderWistia#

renderWistia(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:354


renderYouTube#

renderYouTube(): TemplateResult<ResultType>

Returns#

TemplateResult<ResultType>

Defined in#

src/OEmbedElement.ts:261