Files
Hristo Hristov 645f428f59 alpha1
2016-12-13 15:51:18 +02:00

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";
}
}