/** * @license * Copyright Paperbits. All Rights Reserved. * * Use of this source code is governed by a Commercial license that can be found in the LICENSE file and at https://paperbits.io/license/commercial. */ import * as ko from "knockout"; import template from "./section.html"; import { BackgroundModel } from "@paperbits/common/widgets/background/backgroundModel"; import { Component } from "@paperbits/common/ko/decorators"; import { WidgetViewModel } from "@paperbits/core/ko/widgetViewModel"; import { StyleModel } from "@paperbits/common/styles"; @Component({ selector: "email-layout-section", template: template }) export class SectionViewModel implements WidgetViewModel { public widgets: ko.ObservableArray; public container: ko.Observable; public snapTo: ko.Observable; public background: ko.Observable; public styles: ko.Observable; constructor() { this.widgets = ko.observableArray(); this.container = ko.observable(); this.snapTo = ko.observable(); this.background = ko.observable(); this.styles = ko.observable(); } }