mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user