bb-inline-editor
Version:
Follow me [](https://twitter.com/carlillo) to be notified about new releases.
26 lines (20 loc) • 892 B
text/typescript
import { Component, Injector, ChangeDetectionStrategy } from "@angular/core";
import { InputBase } from "./input-base";
import { InlineConfig } from "../types/inline-configs";
export class InputCheckboxComponent extends InputBase {
constructor(injector: Injector) {
super(injector);
}
public config: InlineConfig;
public showText() {
return this.value ? this.config.checkedText : this.config.uncheckedText;
}
}