forked from MapComplete/MapComplete
Add question box as special rendering
This commit is contained in:
parent
15664df63f
commit
d47fd7e746
42 changed files with 956 additions and 311 deletions
|
@ -35,6 +35,14 @@ export class QueryParameters {
|
|||
return source
|
||||
}
|
||||
|
||||
public static SetDefaultFor(key: string, value: string) {
|
||||
if (QueryParameters.defaults[key] === value) {
|
||||
return
|
||||
}
|
||||
QueryParameters.defaults[key] = value
|
||||
QueryParameters.Serialize()
|
||||
}
|
||||
|
||||
public static GetBooleanQueryParameter(
|
||||
key: string,
|
||||
deflt: boolean,
|
||||
|
@ -80,6 +88,11 @@ export class QueryParameters {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the query parameters of the page location
|
||||
* @constructor
|
||||
* @private
|
||||
*/
|
||||
private static Serialize() {
|
||||
const parts = []
|
||||
for (const key of QueryParameters.order) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue