Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • mxUrlConverter

Index

Constructors

constructor

Properties

baseDomain

baseDomain: string

Variable: baseDomain

Specifies the base domain to be used as a prefix for absolute URLs.

baseUrl

baseUrl: string

Variable: baseUrl

Specifies the base URL to be used as a prefix for relative URLs.

enabled

enabled: boolean

Variable: enabled

Specifies if the converter is enabled. Default is true.

Methods

convert

  • convert(url: string): string
  • Function: convert

    Converts the given URL to an absolute URL with protol and domain. Relative URLs are first converted to absolute URLs.

    Parameters

    • url: string

    Returns string

getBaseDomain

  • getBaseDomain(): string

getBaseUrl

  • getBaseUrl(): string

isEnabled

  • isEnabled(): boolean

isRelativeUrl

  • isRelativeUrl(url: string): boolean
  • Function: isRelativeUrl

    Returns true if the given URL is relative.

    Parameters

    • url: string

    Returns boolean

setBaseDomain

  • setBaseDomain(value: string): void

setBaseUrl

  • setBaseUrl(value: string): void

setEnabled

  • setEnabled(value: boolean): void

updateBaseUrl

  • updateBaseUrl(): void

Generated using TypeDoc