Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShieldIOStaticBadge

Shield IO Static Badge

example
<shieldio-badge label="Label" message="message" color="green"></shieldio-badge>
see

https://shields.io/

Hierarchy

  • ShieldIOBadge
    • ShieldIOStaticBadge

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

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

message

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

Protected srcParameters

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

    Returns string[]

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