@acoustic-content-sdk/component-edit 中文文档教程

发布于 4年前 浏览 13 更新于 3年前

npm

框架独立的实用程序集合来实现内联编辑。

API Documentation

Home > @acoustic-content-sdk/component-edit

component-edit package

独立于框架的实用程序集合,用于实现内联编辑。

Classes

ClassDescription
AbstractInlineEditSelectionService
AbstractWchInlineEditServiceImplementation of the `WchInlineEditServiceV2 that loads the inline edit library and allows to attach to that library.

Functions

FunctionDescription
getInlineEditSelection(aDocument, aLogSvc)

Variables

VariableDescription
EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/component-edit > AbstractInlineEditSelectionService

AbstractInlineEditSelectionService class

Signature:

export declare class AbstractInlineEditSelectionService implements Unsubscribable 

Constructors

ConstructorModifiersDescription
(constructor)(aSelectedClass, aSelectionProvider, aDocument, aLogSvc)Constructs a new instance of the AbstractInlineEditSelectionService class

Methods

MethodModifiersDescription
unsubscribe()

Home > ; @acoustic-content-sdk/component-edit > AbstractWchInlineEditService

AbstractWchInlineEditService class

`WchInlineEditServiceV2 加载内联编辑库并允许附加到该库的实现。

Signature:

export declare class AbstractWchInlineEditService implements WchInlineEditServiceV2, Unsubscribable 

Constructors

ConstructorModifiersDescription
(constructor)(aEventConsumer, aProvider$, aUrlConfig$, aDocument, aLogSvc)Constructs a new instance of the AbstractWchInlineEditService class

Properties

PropertyModifiersTypeDescription
done$Subject<any>
fromEvent<T>(aName: string) => Observable<T>
registerComponent(nativeElement: any, accessor: AccessorType, renderingContext$: Observable<RenderingContextV2>) => Observable<EventTargetLike>

Methods

MethodModifiersDescription
unsubscribe()

Home > @acoustic-content-sdk/component-edit > getInlineEditSelection

getInlineEditSelection() function

Signature:

export declare function getInlineEditSelection(aDocument: Document, aLogSvc?: LoggerService): Observable<string>;

Parameters

ParameterTypeDescription
aDocumentDocument
aLogSvcLoggerService

Returns:

Observable

主页 > @acoustic-content-sdk/component-edit > EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE

EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE variable

Signature:

EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE: WchInlineEditServiceV2

Home > ; @acoustic-content-sdk/component-edit > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

首页 > @acoustic-content-sdk/component-edit > AbstractInlineEditSelectionService > (constructor)

AbstractInlineEditSelectionService.(constructor)

Constructs a new instance of the AbstractInlineEditSelectionService class

Signature:

constructor(aSelectedClass: string, aSelectionProvider: InlineEditSelectionProvider, aDocument?: any, aLogSvc?: LoggerService);

Parameters

ParameterTypeDescription
aSelectedClassstring
aSelectionProviderInlineEditSelectionProvider
aDocumentany
aLogSvcLoggerService

主页 > @acoustic-content-sdk/component-edit > AbstractInlineEditSelectionService > unsubscribe

AbstractInlineEditSelectionService.unsubscribe() method

Signature:

unsubscribe(): void;

Returns:

void

主页 > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > (constructor)

AbstractWchInlineEditService.(constructor)

Constructs a new instance of the AbstractWchInlineEditService class

Signature:

protected constructor(aEventConsumer: Consumer<WchInlineEditEvent>, aProvider$: Observable<WchInlineEditProviderV2>, aUrlConfig$: Observable<UrlConfig>, aDocument?: any, aLogSvc?: LoggerService);

Parameters

ParameterTypeDescription
aEventConsumerConsumer&lt;WchInlineEditEvent&gt;
aProvider$Observable&lt;WchInlineEditProviderV2&gt;
aUrlConfig$Observable&lt;UrlConfig&gt;
aDocumentany
aLogSvcLoggerService

主页 > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > done$

AbstractWchInlineEditService.done$ property

Signature:

protected readonly done$: Subject<any>;

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > fromEvent

AbstractWchInlineEditService.fromEvent property

Signature:

fromEvent: <T>(aName: string) => Observable<T>;

Home > ; @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > registerComponent

AbstractWchInlineEditService.registerComponent property

Signature:

registerComponent: (nativeElement: any, accessor: AccessorType, renderingContext$: Observable<RenderingContextV2>) => Observable<EventTargetLike>;

Home > ; @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > 退订

AbstractWchInlineEditService.unsubscribe() method

签名:

unsubscribe(): void;

退货:

void

npm

Framework independent collection of utilities to implement inline edit.

API Documentation

Home > @acoustic-content-sdk/component-edit

component-edit package

Framework independent collection of utilities to implement inline edit.

Classes

ClassDescription
AbstractInlineEditSelectionService
AbstractWchInlineEditServiceImplementation of the `WchInlineEditServiceV2 that loads the inline edit library and allows to attach to that library.

Functions

FunctionDescription
getInlineEditSelection(aDocument, aLogSvc)

Variables

VariableDescription
EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE
VERSIONVersion and build number of the package

Home > @acoustic-content-sdk/component-edit > AbstractInlineEditSelectionService

AbstractInlineEditSelectionService class

Signature:

export declare class AbstractInlineEditSelectionService implements Unsubscribable 

Constructors

ConstructorModifiersDescription
(constructor)(aSelectedClass, aSelectionProvider, aDocument, aLogSvc)Constructs a new instance of the AbstractInlineEditSelectionService class

Methods

MethodModifiersDescription
unsubscribe()

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService

AbstractWchInlineEditService class

Implementation of the `WchInlineEditServiceV2 that loads the inline edit library and allows to attach to that library.

Signature:

export declare class AbstractWchInlineEditService implements WchInlineEditServiceV2, Unsubscribable 

Constructors

ConstructorModifiersDescription
(constructor)(aEventConsumer, aProvider$, aUrlConfig$, aDocument, aLogSvc)Constructs a new instance of the AbstractWchInlineEditService class

Properties

PropertyModifiersTypeDescription
done$Subject&lt;any&gt;
fromEvent&lt;T&gt;(aName: string) =&gt; Observable&lt;T&gt;
registerComponent(nativeElement: any, accessor: AccessorType, renderingContext$: Observable&lt;RenderingContextV2&gt;) =&gt; Observable&lt;EventTargetLike&gt;

Methods

MethodModifiersDescription
unsubscribe()

Home > @acoustic-content-sdk/component-edit > getInlineEditSelection

getInlineEditSelection() function

Signature:

export declare function getInlineEditSelection(aDocument: Document, aLogSvc?: LoggerService): Observable<string>;

Parameters

ParameterTypeDescription
aDocumentDocument
aLogSvcLoggerService

Returns:

Observable<string>

Home > @acoustic-content-sdk/component-edit > EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE

EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE variable

Signature:

EMPTY_ACOUSTIC_INLINE_EDIT_SERVICE: WchInlineEditServiceV2

Home > @acoustic-content-sdk/component-edit > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

Home > @acoustic-content-sdk/component-edit > AbstractInlineEditSelectionService > (constructor)

AbstractInlineEditSelectionService.(constructor)

Constructs a new instance of the AbstractInlineEditSelectionService class

Signature:

constructor(aSelectedClass: string, aSelectionProvider: InlineEditSelectionProvider, aDocument?: any, aLogSvc?: LoggerService);

Parameters

ParameterTypeDescription
aSelectedClassstring
aSelectionProviderInlineEditSelectionProvider
aDocumentany
aLogSvcLoggerService

Home > @acoustic-content-sdk/component-edit > AbstractInlineEditSelectionService > unsubscribe

AbstractInlineEditSelectionService.unsubscribe() method

Signature:

unsubscribe(): void;

Returns:

void

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > (constructor)

AbstractWchInlineEditService.(constructor)

Constructs a new instance of the AbstractWchInlineEditService class

Signature:

protected constructor(aEventConsumer: Consumer<WchInlineEditEvent>, aProvider$: Observable<WchInlineEditProviderV2>, aUrlConfig$: Observable<UrlConfig>, aDocument?: any, aLogSvc?: LoggerService);

Parameters

ParameterTypeDescription
aEventConsumerConsumer&lt;WchInlineEditEvent&gt;
aProvider$Observable&lt;WchInlineEditProviderV2&gt;
aUrlConfig$Observable&lt;UrlConfig&gt;
aDocumentany
aLogSvcLoggerService

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > done$

AbstractWchInlineEditService.done$ property

Signature:

protected readonly done$: Subject<any>;

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > fromEvent

AbstractWchInlineEditService.fromEvent property

Signature:

fromEvent: <T>(aName: string) => Observable<T>;

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > registerComponent

AbstractWchInlineEditService.registerComponent property

Signature:

registerComponent: (nativeElement: any, accessor: AccessorType, renderingContext$: Observable<RenderingContextV2>) => Observable<EventTargetLike>;

Home > @acoustic-content-sdk/component-edit > AbstractWchInlineEditService > unsubscribe

AbstractWchInlineEditService.unsubscribe() method

Signature:

unsubscribe(): void;

Returns:

void

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文