2023-10-30 13:45:44 +01:00
import { Translatable } from "./Translatable"
2022-02-14 04:48:33 +01:00
export default interface ExtraLinkConfigJson {
2023-10-30 13:45:44 +01:00
/ * *
* question : What icon should be shown in the link button ?
* ifunset : do not show an icon
* type : icon
* /
2022-02-14 04:48:33 +01:00
icon? : string
2023-10-30 13:45:44 +01:00
/ * *
* question : What text should be shown in the link icon ?
*
* Note that { lat } , { lon } , { zoom } , { language } and { theme } will be replaced
*
* ifunset : do not show a text
* /
text? : Translatable
/ * *
* question : if clicked , what webpage should open ?
* Note that { lat } , { lon } , { zoom } , { language } and { theme } will be replaced
*
* type : url
* /
2022-02-14 04:48:33 +01:00
href : string
2023-10-30 13:45:44 +01:00
/ * *
* question : Should the link open in a new tab ?
* iftrue : Open in a new tab
* iffalse : do not open in a new tab
* ifunset : do not open in a new tab
* /
2022-02-14 04:48:33 +01:00
newTab? : false | boolean
2023-10-30 13:45:44 +01:00
/ * *
* question : When should the extra button be shown ?
* suggestions : return [ { if : "value=iframe" , then : "When shown in an iframe" } , { if : "value=no-iframe" , then : "When shown as stand-alone webpage" } , { if : "value=welcome-message" , then : "When the welcome messages are enabled" } , { if : "value=iframe" , then : "When the welcome messages are disabled" } ]
* /
2022-02-14 04:48:33 +01:00
requirements ? : ( "iframe" | "no-iframe" | "welcome-message" | "no-welcome-message" ) [ ]
}