mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
import { Button as ButtonDefinition } from "ui/button";
|
|
import { TextBase } from "ui/text-base";
|
|
|
|
export abstract class ButtonBase extends TextBase implements ButtonDefinition {
|
|
public static tapEvent = "tap";
|
|
|
|
get textWrap(): boolean {
|
|
return this.style.whiteSpace === "normal";
|
|
}
|
|
set textWrap(value: boolean) {
|
|
this.style.whiteSpace = value ? "normal" : "nowrap";
|
|
}
|
|
} |