Skip to content

TwitterProfileElement

new TwitterProfileElement(): TwitterProfileElement

TwitterProfileElement

TwitterElement.constructor

static observedAttributes: string[]

TwitterElement.observedAttributes

get data(): T | undefined

T | undefined

set data(value): void

T | undefined

void

TwitterElement.data


get options(): object

object

optional actionMode?: "link" | "event" | "static"

optional actions?: ("reply" | "repost" | "quote" | "like" | "views" | "bookmark" | "share")[]

optional countFormat?: "compact" | "full" | "hidden"

optional dateFormat?: "full" | "short" | "relative"

optional density?: "comfortable" | "compact"

optional layout?: "timeline" | "detail"

optional linkTarget?: "_blank" | "_self"

optional locale?: string

optional mediaFit?: "contain" | "cover"

optional mediaMaxHeight?: number

optional referenceTime?: string

optional repostCount?: "combined" | "reposts"

optional showBookmarkCount?: boolean

optional showConnections?: boolean

optional showGrok?: boolean

optional showMedia?: boolean

optional showMenu?: boolean

optional showZeroCounts?: boolean

optional theme?: "dark" | "light" | "dim" | "auto"

optional timeZone?: string

set options(value): void

"link" | "event" | "static" = ...

("reply" | "repost" | "quote" | "like" | "views" | "bookmark" | "share")[] = ...

"compact" | "full" | "hidden" = ...

"full" | "short" | "relative" = ...

"comfortable" | "compact" = ...

"timeline" | "detail" = ...

"_blank" | "_self" = ...

string = ...

"contain" | "cover" = ...

number = ...

string = ...

"combined" | "reposts" = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

boolean = ...

"dark" | "light" | "dim" | "auto" = ...

string = ...

void

TwitterElement.options


get profile(): { author: string; avatar?: string; banner?: { alt: string; height: number; src: string; width: number; }; bio?: string; followers?: string | number; following?: string | number; handle: string; joined?: string; location?: string; posts?: string | number; url?: string; verified?: boolean; website?: { label: string; url: string; }; } | undefined

{ author: string; avatar?: string; banner?: { alt: string; height: number; src: string; width: number; }; bio?: string; followers?: string | number; following?: string | number; handle: string; joined?: string; location?: string; posts?: string | number; url?: string; verified?: boolean; website?: { label: string; url: string; }; } | undefined

set profile(value): void

{ author: string; avatar?: string; banner?: { alt: string; height: number; src: string; width: number; }; bio?: string; followers?: string | number; following?: string | number; handle: string; joined?: string; location?: string; posts?: string | number; url?: string; verified?: boolean; website?: { label: string; url: string; }; } | undefined

void

attributeChangedCallback(name): void

string

void

TwitterElement.attributeChangedCallback


connectedCallback(): void

void

TwitterElement.connectedCallback