@paperbits/core
Version:
Paperbits core components.
20 lines (16 loc) • 591 B
text/typescript
import * as ko from "knockout";
import template from "./placeholder.html";
import { Component } from "@paperbits/common/ko/decorators";
import { ComponentFlow } from "@paperbits/common/components";
({
selector: "paperbits-placeholder",
template: template
})
export class Placeholder {
public title: ko.Observable<string>;
public widgetBinding: any;
constructor(title: string) {
this.title = ko.observable<string>(title);
this.widgetBinding = { displayName: title, flow: ComponentFlow.Placeholder, readonly: true };
}
}