Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShieldIODynamicBadge

Shield IO Dynamic Badge

example
<shieldio-badge-dynamic datatype="xml" dataurl="https://raw.githubusercontent.com/PH16-Productions/tv.ph16.paperplugin/main/pom.xml" label="Java Version" dataquery="//*[local-name() = 'java.version']"></shieldio-badge-dynamic>
see

https://shields.io/

Hierarchy

  • ShieldIOBadge
    • ShieldIODynamicBadge

Index

Constructors

constructor

Accessors

badgeStyle

color

  • get color(): null | string
  • set color(v: null | string): void
  • Gets the color of the right-hand-side background.

    Returns null | string

  • Sets the color of the right-hand-side background.

    Parameters

    • v: null | string

    Returns void

dataQuery

  • get dataQuery(): null | string
  • set dataQuery(v: null | string): void

dataType

dataUrl

  • get dataUrl(): null | string
  • set dataUrl(v: null | string): void

Protected imgSrc

  • get imgSrc(): string
  • set imgSrc(v: string): void
  • Gets the source of the inner {@link HTMLImageElement}.

    Returns string

  • Sets the source of the inner {@link HTMLImageElement}.

    Parameters

    • v: string

    Returns void

label

  • get label(): null | string
  • set label(v: null | string): void
  • Gets the left-hand-side text if overwritten; otherwise null.

    Returns null | string

  • Sets the left-hand-side text. To use default set to null.

    Parameters

    • v: null | string

    Returns void

labelColor

  • get labelColor(): null | string
  • set labelColor(v: null | string): void
  • Gets the color of the left-hand-side background.

    Returns null | string

  • Sets the color of the left-hand-side background.

    Parameters

    • v: null | string

    Returns void

logo

logoColor

  • get logoColor(): null | string
  • set logoColor(v: null | string): void

logoWidth

  • get logoWidth(): null | number
  • set logoWidth(v: null | number): void
  • Gets the horizontal space for the logo.

    Returns null | number

  • Sets the horizontal space for the logo.

    Parameters

    • v: null | number

    Returns void

prefix

  • get prefix(): null | string
  • set prefix(v: null | string): void

Protected srcParameters

  • get srcParameters(): string[]
  • Gets the parameters common to all Shield IO badge URLs.

    Returns string[]

suffix

  • get suffix(): null | string
  • set suffix(v: null | string): void

tagName

  • get tagName(): string

Static baseObservedAttributes

  • get baseObservedAttributes(): string[]
  • Gets the observable attributes common to all Shield IO badges.

    Returns string[]

Static observedAttributes

  • get observedAttributes(): string[]

Static tagName

  • get tagName(): string

Methods

attributeChangedCallback

  • attributeChangedCallback(_: string, __: string, ___: string): void
  • inheritdoc

    Parameters

    • _: string
    • __: string
    • ___: string

    Returns void

Protected setSrc

  • setSrc(): void

Generated using TypeDoc