-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72d1e2d
commit 9419375
Showing
2 changed files
with
45 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,33 @@ | ||
<script setup lang="ts"> | ||
import VueTweet from "./vue-tweet.vue"; | ||
function onTweetLoadSuccess(embedNode: HTMLDivElement) { | ||
console.log("onTweetLoadSuccess callback", embedNode); | ||
} | ||
function onTweetLoadError(error: Error) { | ||
console.log("onTweetLoadError callback", error); | ||
} | ||
</script> | ||
|
||
<template> | ||
<vue-tweet tweetId="20" /> | ||
<vue-tweet | ||
tweet-url="https://twitter.com/DannyFeliz08/status/15302400858070548448" | ||
cards="visible" | ||
conversation="all" | ||
lang="en" | ||
theme="light" | ||
align="left" | ||
:width="400" | ||
:dnt="false" | ||
@tweet-load-error="onTweetLoadError" | ||
@tweet-load-success="onTweetLoadSuccess" | ||
> | ||
<template v-slot:loading> | ||
<span>Loading...</span> | ||
</template> | ||
|
||
<vue-tweet tweetId="1773558525089747128" :width="350" lang="es" /> | ||
<template v-slot:error> | ||
<span>Sorry, that tweet doesn't exist!</span> | ||
</template> | ||
</vue-tweet> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters