TwitterPostElement
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TwitterPostElement():
TwitterPostElement
Returns
Section titled “Returns”TwitterPostElement
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”observedAttributes
Section titled “observedAttributes”
staticobservedAttributes:string[]
Inherited from
Section titled “Inherited from”TwitterElement.observedAttributes
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get data():
T|undefined
Returns
Section titled “Returns”T | undefined
Set Signature
Section titled “Set Signature”set data(
value):void
Parameters
Section titled “Parameters”T | undefined
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”options
Section titled “options”Get Signature
Section titled “Get Signature”get options():
object
Returns
Section titled “Returns”object
actionMode?
Section titled “actionMode?”
optionalactionMode?:"link"|"event"|"static"
actions?
Section titled “actions?”
optionalactions?: ("reply"|"repost"|"quote"|"like"|"views"|"bookmark"|"share")[]
countFormat?
Section titled “countFormat?”
optionalcountFormat?:"compact"|"full"|"hidden"
dateFormat?
Section titled “dateFormat?”
optionaldateFormat?:"full"|"short"|"relative"
density?
Section titled “density?”
optionaldensity?:"comfortable"|"compact"
layout?
Section titled “layout?”
optionallayout?:"timeline"|"detail"
linkTarget?
Section titled “linkTarget?”
optionallinkTarget?:"_blank"|"_self"
locale?
Section titled “locale?”
optionallocale?:string
mediaFit?
Section titled “mediaFit?”
optionalmediaFit?:"contain"|"cover"
mediaMaxHeight?
Section titled “mediaMaxHeight?”
optionalmediaMaxHeight?:number
referenceTime?
Section titled “referenceTime?”
optionalreferenceTime?:string
repostCount?
Section titled “repostCount?”
optionalrepostCount?:"combined"|"reposts"
showBookmarkCount?
Section titled “showBookmarkCount?”
optionalshowBookmarkCount?:boolean
showConnections?
Section titled “showConnections?”
optionalshowConnections?:boolean
showGrok?
Section titled “showGrok?”
optionalshowGrok?:boolean
showMedia?
Section titled “showMedia?”
optionalshowMedia?:boolean
showMenu?
Section titled “showMenu?”
optionalshowMenu?:boolean
showZeroCounts?
Section titled “showZeroCounts?”
optionalshowZeroCounts?:boolean
theme?
Section titled “theme?”
optionaltheme?:"dark"|"light"|"dim"|"auto"
timeZone?
Section titled “timeZone?”
optionaltimeZone?:string
Set Signature
Section titled “Set Signature”set options(
value):void
Parameters
Section titled “Parameters”actionMode?
Section titled “actionMode?”"link" | "event" | "static" = ...
actions?
Section titled “actions?”("reply" | "repost" | "quote" | "like" | "views" | "bookmark" | "share")[] = ...
countFormat?
Section titled “countFormat?”"compact" | "full" | "hidden" = ...
dateFormat?
Section titled “dateFormat?”"full" | "short" | "relative" = ...
density?
Section titled “density?”"comfortable" | "compact" = ...
layout?
Section titled “layout?”"timeline" | "detail" = ...
linkTarget?
Section titled “linkTarget?”"_blank" | "_self" = ...
locale?
Section titled “locale?”string = ...
mediaFit?
Section titled “mediaFit?”"contain" | "cover" = ...
mediaMaxHeight?
Section titled “mediaMaxHeight?”number = ...
referenceTime?
Section titled “referenceTime?”string = ...
repostCount?
Section titled “repostCount?”"combined" | "reposts" = ...
showBookmarkCount?
Section titled “showBookmarkCount?”boolean = ...
showConnections?
Section titled “showConnections?”boolean = ...
showGrok?
Section titled “showGrok?”boolean = ...
showMedia?
Section titled “showMedia?”boolean = ...
showMenu?
Section titled “showMenu?”boolean = ...
showZeroCounts?
Section titled “showZeroCounts?”boolean = ...
theme?
Section titled “theme?”"dark" | "light" | "dim" | "auto" = ...
timeZone?
Section titled “timeZone?”string = ...
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get post(): {
author:string;avatar?:string;card?: {description?:string;domain:string;image?: {alt:string;height:number;src:string;width:number; };title:string;url?:string; };content:string;dateLabel?:string;handle:string;id?:string;images?:object[];links?:object[];quote?: {author:string;avatar?:string;content:string;dateLabel?:string;handle:string;id?:string;images?:object[];links?:object[];timestamp?:string;url?:string;verified?:boolean; };replyingTo?:string[];replyTo?:string;state?: {bookmarked?:boolean;liked?:boolean;reposted?:boolean; };stats?: {bookmarks?:string|number;likes?:string|number;quotes?:string|number;replies?:string|number;reposts?:string|number;views?:string|number; };timestamp?:string;url?:string;verified?:boolean; } |undefined
Returns
Section titled “Returns”{ author: string; avatar?: string; card?: { description?: string; domain: string; image?: { alt: string; height: number; src: string; width: number; }; title: string; url?: string; }; content: string; dateLabel?: string; handle: string; id?: string; images?: object[]; links?: object[]; quote?: { author: string; avatar?: string; content: string; dateLabel?: string; handle: string; id?: string; images?: object[]; links?: object[]; timestamp?: string; url?: string; verified?: boolean; }; replyingTo?: string[]; replyTo?: string; state?: { bookmarked?: boolean; liked?: boolean; reposted?: boolean; }; stats?: { bookmarks?: string | number; likes?: string | number; quotes?: string | number; replies?: string | number; reposts?: string | number; views?: string | number; }; timestamp?: string; url?: string; verified?: boolean; } | undefined
Set Signature
Section titled “Set Signature”set post(
value):void
Parameters
Section titled “Parameters”{ author: string; avatar?: string; card?: { description?: string; domain: string; image?: { alt: string; height: number; src: string; width: number; }; title: string; url?: string; }; content: string; dateLabel?: string; handle: string; id?: string; images?: object[]; links?: object[]; quote?: { author: string; avatar?: string; content: string; dateLabel?: string; handle: string; id?: string; images?: object[]; links?: object[]; timestamp?: string; url?: string; verified?: boolean; }; replyingTo?: string[]; replyTo?: string; state?: { bookmarked?: boolean; liked?: boolean; reposted?: boolean; }; stats?: { bookmarks?: string | number; likes?: string | number; quotes?: string | number; replies?: string | number; reposts?: string | number; views?: string | number; }; timestamp?: string; url?: string; verified?: boolean; } | undefined
Returns
Section titled “Returns”void
Methods
Section titled “Methods”attributeChangedCallback()
Section titled “attributeChangedCallback()”attributeChangedCallback(
name):void
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”TwitterElement.attributeChangedCallback
connectedCallback()
Section titled “connectedCallback()”connectedCallback():
void
Returns
Section titled “Returns”void