21 lines
510 B
TypeScript
21 lines
510 B
TypeScript
import { NativeClasses } from "../milsko";
|
|
import { Widget } from "../widget";
|
|
import { WidgetOptions } from "../types";
|
|
|
|
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);
|
|
}
|
|
}
|