feat: TappableSpan support (#8256)

* feat(android): clickable span

Initial support for clickable span on Android

* test: clickable-span test page

* remove console.log

* use _emit instead of notify

* rename clickable to tappable in Span

* updated NativeScript.api.md

* chore: fixing tslint errors

* chore: fixed witespacing

* moved and improved test page

* feat: tappable span iOS implementation

Co-authored-by: Eduardo Speroni <edusperoni@gmail.com>
This commit is contained in:
Vasil Trifonov
2020-03-20 18:35:28 +02:00
parent 92b5b02bf5
commit 8ab0e72bc9
6 changed files with 224 additions and 4 deletions

View File

@@ -1936,14 +1936,18 @@ export class Span extends ViewBase {
public fontWeight: FontWeight;
public static linkTapEvent: string;
// (undocumented)
_setTextInternal(value: string): void;
public readonly tappable: boolean;
public text: string;
public textDecoration: TextDecoration;
//@endprivate
}
}
// @public
export class StackLayout extends LayoutBase {
@@ -2422,7 +2426,7 @@ export interface TapGestureEventData extends GestureEventData {
getPointerCount(): number;
getX(): number;
getY(): number;
}