Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pixabay

Hierarchy

Index

Constructors

  • new Pixabay(apiKey: string): Pixabay

Properties

apiKey: string
color: string = "#333"
fetchSettings?: RequestInit
getButton: (image: PixabayResult) => string

Type declaration

    • (image: PixabayResult): string
    • Parameters

      • image: PixabayResult

      Returns string

getPopularResults: (response: any) => PixabayResult[]

Type declaration

    • (response: any): PixabayResult[]
    • Parameters

      • response: any

      Returns PixabayResult[]

getSearchResults: (response: any) => PixabayResult[]

Type declaration

    • (response: any): PixabayResult[]
    • Parameters

      • response: any

      Returns PixabayResult[]

icon: string = ""
invisible: boolean = false
loading: boolean = false
name: string = ""
noRecolor: boolean = false
popularEndpoint: string
poweredByUrl: string
results: PixabayResult[] = []
searchEndpoint: (apiKey: string, query: string) => string

Type declaration

    • (apiKey: string, query: string): string
    • Parameters

      • apiKey: string
      • query: string

      Returns string

stop: () => void = ...

Type declaration

    • (): void
    • Returns void

supports: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

type: string = "service"

Methods

Generated using TypeDoc