@paperbits/core
Version:
Paperbits core components.
20 lines (18 loc) • 611 B
text/typescript
import * as ko from "knockout";
import template from "./gridCell.html";
import { Component } from "@paperbits/common/ko/decorators";
import { StyleModel } from "@paperbits/common/styles";
({
selector: "grid-cell",
template: template
})
export class GridCellViewModel {
public widgets: ko.ObservableArray<Object>;
public role: ko.Observable<string>;
public styles: ko.Observable<StyleModel>;
constructor() {
this.widgets = ko.observableArray<Object>();
this.styles = ko.observable<any>();
this.role = ko.observable<string>();
}
}