mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): dom types and jsdoc tags (#10868)
This commit is contained in:
@@ -302,10 +302,6 @@ namespace SuspendType {
|
||||
|
||||
const DEFAULT_VIEW_PADDINGS: Map<string, any> = new Map();
|
||||
|
||||
/**
|
||||
*
|
||||
* @nsView ViewBase
|
||||
*/
|
||||
export abstract class ViewBase extends Observable {
|
||||
/**
|
||||
* String value used when hooking to loaded event.
|
||||
|
||||
16
packages/core/ui/core/view/index.d.ts
vendored
16
packages/core/ui/core/view/index.d.ts
vendored
@@ -8,7 +8,7 @@ import { ShadowCSSValues } from '../../styling/css-shadow';
|
||||
import { LinearGradient } from '../../styling/linear-gradient';
|
||||
import { InheritedProperty, Property } from '../properties';
|
||||
import { ViewBase } from '../view-base';
|
||||
import { ViewCommon } from './view-common';
|
||||
import { GlassEffectType, ViewCommon } from './view-common';
|
||||
import type { Point } from './view-interfaces';
|
||||
|
||||
export * from './view-common';
|
||||
@@ -47,8 +47,6 @@ export function viewMatchesModuleContext(view: View, context: ModuleContext, typ
|
||||
/**
|
||||
* This class is the base class for all UI components.
|
||||
* A View occupies a rectangular area on the screen and is responsible for drawing and layouting of all UI components within.
|
||||
*
|
||||
* @nsView View
|
||||
*/
|
||||
export abstract class View extends ViewCommon {
|
||||
/**
|
||||
@@ -232,6 +230,8 @@ export abstract class View extends ViewCommon {
|
||||
|
||||
/**
|
||||
* If `true` the element is an accessibility element and all the children will be treated as a single selectable component.
|
||||
*
|
||||
* @nsProperty
|
||||
*/
|
||||
accessible: boolean;
|
||||
|
||||
@@ -289,6 +289,8 @@ export abstract class View extends ViewCommon {
|
||||
|
||||
/**
|
||||
* When components dynamically change, we want TalkBack to alert the end user. This is made possible by the accessibilityLiveRegion property.
|
||||
*
|
||||
* @nsProperty
|
||||
*/
|
||||
accessibilityLiveRegion: AccessibilityLiveRegion;
|
||||
|
||||
@@ -610,6 +612,14 @@ export abstract class View extends ViewCommon {
|
||||
*/
|
||||
visionHoverStyle: string | VisionHoverOptions;
|
||||
|
||||
/**
|
||||
* Set the iOS Liquid Glass effect style on the view
|
||||
*
|
||||
* @nsProperty
|
||||
*/
|
||||
|
||||
iosGlassEffect: GlassEffectType;
|
||||
|
||||
/**
|
||||
* @nsProperty
|
||||
*/
|
||||
|
||||
@@ -98,6 +98,7 @@ export abstract class ViewCommon extends ViewBase {
|
||||
*/
|
||||
public visionHoverStyle: string | VisionHoverOptions;
|
||||
public visionIgnoreHoverStyle: boolean;
|
||||
iosGlassEffect: GlassEffectType;
|
||||
|
||||
protected _closeModalCallback: Function;
|
||||
public _manager: any;
|
||||
|
||||
2
packages/core/ui/slider/index.d.ts
vendored
2
packages/core/ui/slider/index.d.ts
vendored
@@ -18,7 +18,7 @@ export class Slider extends View {
|
||||
/**
|
||||
* String value used when hooking to accessibilityDecrement event.
|
||||
*
|
||||
* @nsEvent {accessibilityDecrementEvent} accessibilityDecrement
|
||||
* @nsEvent {AccessibilityDecrementEventData} accessibilityDecrement
|
||||
*/
|
||||
static readonly accessibilityDecrementEvent = 'accessibilityDecrement';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user