milsko-node/lib/widgets/numberentry.ts

21 lines
515 B
TypeScript
Raw Permalink Normal View History

2026-05-04 11:38:58 -07:00
import { NativeClasses } from "../milsko";
import { Widget } from "../widget";
2026-05-07 09:40:35 -07:00
import type { WidgetOptions } from "../types";
2026-05-04 11:38:58 -07:00
export class NumberEntry extends Widget {
constructor(options: WidgetOptions) {
super(NativeClasses.NumberEntry, options);
}
public setText(value: string): this {
return this.setString("Stext", value);
}
get text(): string {
return this.getString("Stext");
}
set text(value: string) {
this.setString("Stext", value);
}
}