Skip to content

ExternalLink

stevetotheizz0 edited this page Nov 2, 2018 · 5 revisions

ExternalLink

External links can either be a standalone component within a topic, or added as an option to an existing component (i.e. - Horizontal Table, Callout, Badge, etc).

Examples:

As a Component

{
  type: 'external-link',
  options:{
    data: 'See more at Vacancy Property Viewer',
    href: function() {

      return '//phl.maps.arcgis.com/apps/webappviewer/index.html?id=64ac160773d04952bc17ad895cc00680';
    }
  }
}

Option of a Component

externalLink: {
  action: function() {
    return 'See a list of all RCOs in the city [PDF]';
  },
  name: '',
  href: function(state) {
    return '//www.phila.gov/CityPlanning/projectreviews/RCO%20Related/List_of_RCOs.pdf';
  }
}

Clone this wiki locally