import Model from "./model.js";
/**
* Used for the simplest generators that return strings, such as Plot and LocationName.
* This gives us a consistent way to display and save the results of all generators.
*/
export default class SimpleModel extends Model {
constructor(params) {
super(params);
this.value = params.value;
this._class = "SimpleModel";
}
toTitleString() {
return null;
}
getDisplayPropers() {
return {};
}
toDetailHtml() {
return `<p>${this.value}</p>`;
}
toString() {
return this.value;
}
}