forked from MapComplete/MapComplete
Studio: theme editing
This commit is contained in:
parent
6e7eccf9de
commit
3aa9a21dea
34 changed files with 975 additions and 350 deletions
|
@ -1,7 +1,37 @@
|
|||
import { Translatable } from "./Translatable"
|
||||
|
||||
export default interface ExtraLinkConfigJson {
|
||||
/**
|
||||
* question: What icon should be shown in the link button?
|
||||
* ifunset: do not show an icon
|
||||
* type: icon
|
||||
*/
|
||||
icon?: string
|
||||
text?: string | any
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
href: string
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
newTab?: false | boolean
|
||||
/**
|
||||
* 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"}]
|
||||
*/
|
||||
requirements?: ("iframe" | "no-iframe" | "welcome-message" | "no-welcome-message")[]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue