UNPKG

@nativescript/core

Version:

A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.

27 lines 867 B
import { TextBase } from '../text-base'; import { CSSType } from '../core/view'; import { booleanConverter } from '../core/view-base'; import { AccessibilityRole } from '../../accessibility'; let ButtonBase = class ButtonBase extends TextBase { constructor() { super(...arguments); this.accessible = true; this.accessibilityRole = AccessibilityRole.Button; } get textWrap() { return this.style.whiteSpace === 'normal'; } set textWrap(value) { if (typeof value === 'string') { value = booleanConverter(value); } this.style.whiteSpace = value ? 'normal' : 'nowrap'; } }; ButtonBase.tapEvent = 'tap'; ButtonBase = __decorate([ CSSType('Button') ], ButtonBase); export { ButtonBase }; ButtonBase.prototype.recycleNativeView = 'auto'; //# sourceMappingURL=button-common.js.map