ProductPromotion
Logo

Angular.JS

made by https://0x3d.site

GitHub - mustafaer/angular-twitter-timeline: Angular Public Twitter Timeline Widget
Angular Public Twitter Timeline Widget. Contribute to mustafaer/angular-twitter-timeline development by creating an account on GitHub.
Visit Site

GitHub - mustafaer/angular-twitter-timeline: Angular Public Twitter Timeline Widget

GitHub - mustafaer/angular-twitter-timeline: Angular Public Twitter Timeline Widget

Angular Twitter Timeline

Embed Twitter Timeline in Angular application.

Supported version:

Angular 18

Demo

Demo

Editor

Editor

Installation

To install this library, run:

$ npm i angular-twitter-timeline

Usage

Import in your Angular app:

// Import angular-twitter-timeline
import { AngularTwitterTimelineModule } from "angular-twitter-timeline";

@NgModule({
  ...
  imports: [
    ...,
    AngularTwitterTimelineModule
  ],
    ...
})
export class AppModule { }

Once the library is imported, you can use its component in your Angular application:

<!-- You can now use the library component in app.component.html -->
<angular-twitter-timeline
	[data]="{sourceType: 'profile', url: 'mustafaer_dev'}"
	[opts]="{tweetLimit: 5}"
></angular-twitter-timeline>

Data

Data can take value of url or profile. If url is set, you have to provide a valid Twitter URL; If profile is set, you have to set screenName as a valid Twitter screen name. E.g. @mustafaer_dev.

url and screenName are mutually exclusive.

AngularTwitterTimelineDataInterface {
  /**
   * profile or URL
   */
  sourceType: string;
  /**
   * Valid Twitter username
   */
  screenName?: string;
  /**
   * Absolute URL of a Twitter profile, likes, list, or collection
   */
  url: string;
}

Options

AngularTwitterTimelineOptionsInterface {
  /**
   * Render a timeline statically, displaying only n number of Tweets.
   */
  tweetLimit?: number;
  /**
   * Set a fixed height of the embedded widget
   * Positive integer
   */
  height?: number;
  /**
   * Adjust the color of borders inside the widget.
   * Hexadecimal color
   */
  borderColor?: string;
  /**
   * Sets the theme of the widget. Default = 'light'.
   * 'light' or 'dark'
   */
  theme?: string;
  /**
   * Toggle the display of design elements in the widget. This parameter is a space-separated list of values
   * Values: noheader, nofooter, noborders, transparent, noscrollbar
   */
  chrome?: string[];
  /**
   * Apply the specified aria-polite behavior to the rendered timeline.
   * New Tweets may be added to the top of a timeline, affecting screen readers
   * Values: polite, assertive, rude
   */
  ariaPolite?: string[];
}

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory