import * as ko from "knockout"; import template from "./selectInput.html"; import { Component } from "@paperbits/common/ko/decorators"; import { StyleModel } from "@paperbits/common/styles"; import { SelectInputOption } from "./selectInputOption"; @Component({ selector: "select-input", template: template }) export class SelectInput { public readonly label: ko.Observable; public readonly name: ko.Observable; public readonly value: ko.Observable; public readonly placeholder: ko.Observable; public readonly styles: ko.Observable; public readonly readonly: ko.Observable; public readonly required: ko.Observable; public readonly options: ko.ObservableArray; constructor() { this.label = ko.observable("Select"); this.name = ko.observable(); this.value = ko.observable(); this.placeholder = ko.observable("Select value"); this.readonly = ko.observable(); this.required = ko.observable(); this.options = ko.observableArray(); this.styles = ko.observable(); } }