@nativescript/core
Version:
A JavaScript library providing an easy to use api for interacting with iOS and Android platform APIs.
30 lines (29 loc) • 1.69 kB
TypeScript
import { ButtonBase } from './button-common';
import { paddingLeftProperty, paddingTopProperty, paddingRightProperty, paddingBottomProperty, zIndexProperty, minWidthProperty, minHeightProperty } from '../styling/style-properties';
import { textAlignmentProperty } from '../text-base';
import { CoreTypes } from '../../core-types';
export * from './button-common';
export declare class Button extends ButtonBase {
[minWidthProperty.getDefault]: () => CoreTypes.LengthType;
[minHeightProperty.getDefault]: () => CoreTypes.LengthType;
[paddingTopProperty.getDefault]: () => CoreTypes.LengthType;
[paddingTopProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingRightProperty.getDefault]: () => CoreTypes.LengthType;
[paddingRightProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingBottomProperty.getDefault]: () => CoreTypes.LengthType;
[paddingBottomProperty.setNative]: (value: CoreTypes.LengthType) => void;
[paddingLeftProperty.getDefault]: () => CoreTypes.LengthType;
[paddingLeftProperty.setNative]: (value: CoreTypes.LengthType) => void;
[zIndexProperty.setNative]: (value: number) => void;
[textAlignmentProperty.setNative]: (value: CoreTypes.TextAlignmentType) => void;
nativeViewProtected: android.widget.Button;
private _stateListAnimator;
createNativeView(): globalAndroid.widget.Button;
initNativeView(): void;
disposeNativeView(): void;
resetNativeView(): void;
_updateButtonStateChangeHandler(subscribe: boolean): void;
get needsNativeDrawableFill(): boolean;
protected getDefaultElevation(): number;
protected getDefaultDynamicElevationOffset(): number;
}