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

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

npm

将内联编辑功能附加到基于 WCH 的 Angular 应用程序的模块。

Table of Contents

@acoustic-content-sdk/ng-edit

ng-edit package

将内联编辑功能附加到基于 WCH 的 Angular 应用程序的模块。

Classes

Class Description
AcNgEditableDirectiveModule Module implementing the WchEditableDirectiveService for the edit case
AcNgEditablePlaceholderDirectiveModule Module implementing the WchEditableDirectiveService for the edit case
AcNgEditComponentsModule Exports the components and directives used to attach inline edit to code level angular components.
AcNgEditDirectivesModule Exports the services required to implement the editable directives
AcNgHttpInlineEditProviderModule Provides token ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER
AcNgInlineEditSelectionModule
AcNgInlineEditServiceModule Provides token ACOUSTIC_TOKEN_INLINE_EDIT_SERVICE requires a ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER for the backend
AcNgParentInlineEditProviderModule Exposes the inline edit provider ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER from the parent frame. The provider must have been exposed via the INLINE_EDIT_PROVIDER_ID constant on that window.Depends on: ACOUSTIC_TOKEN_EDIT_HOST_WINDOW, ACOUSTIC_TOKEN_LOGGER_SERVICE
AcNgSelectableDirectiveModule Module implementing the WchSelectableDirectiveService for the edit case

Functions

Function Description
getInlineEditProvider(aHostWindow, aLogSvc) Accesses the WchInlineEditProviderV2 from another window. This other window must be enabled for cross frame access. The provider must be available via the INLINE_EDIT_PROVIDER_ID key on that window.
internalGetInlineEditProvider(aHostWindow, logger) Accesses the WchInlineEditProviderV2 from another window. This other window must be enabled for cross frame access.

Variables

Variable Description
VERSION Version and build number of the package

Home > @acoustic-content-sdk/ng-edit > AcNgEditableDirectiveModule

AcNgEditableDirectiveModule class

Module implementing the WchEditableDirectiveService for the edit case

Signature:

export declare class AcNgEditableDirectiveModule 

主页 > @acoustic-content-sdk/ng-edit > AcNgEditablePlaceholderDirectiveModule

AcNgEditablePlaceholderDirectiveModule class

Module implementing the WchEditableDirectiveService for the edit case

Signature:

export declare class AcNgEditablePlaceholderDirectiveModule 

主页 > @acoustic-content-sdk/ng-edit > AcNgEditComponentsModule

AcNgEditComponentsModule class

导出用于将内联编辑附加到代码级角度组件的组件和指令。

Signature:

export declare class AcNgEditComponentsModule 

Constructors

Constructor Modifiers Description
(constructor)(aLoggerService) Constructs a new instance of the AcNgEditComponentsModule class

Properties

Property Modifiers Type Description
VERSION WchSdkVersion Exposes the version information of this module

Home > @acoustic-content-sdk/ng-edit > AcNgEditDirectivesModule

AcNgEditDirectivesModule class

Exports the services required to implement the editable directives

Signature:

export declare class AcNgEditDirectivesModule 

Constructors

Constructor Modifiers Description
(constructor)(aLoggerService) Constructs a new instance of the AcNgEditDirectivesModule class

主页 > @acoustic-content-sdk/ng-edit > AcNgHttpInlineEditProviderModule

AcNgHttpInlineEditProviderModule class

Provides token ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER

Signature:

export declare class AcNgHttpInlineEditProviderModule 

主页 > @acoustic-content-sdk/ng-edit > AcNgInlineEditSelectionModule

AcNgInlineEditSelectionModule class

Signature:

export declare class AcNgInlineEditSelectionModule 

Constructors

Constructor Modifiers Description
(constructor)(aSelService) Constructs a new instance of the AcNgInlineEditSelectionModule class

Home > ; @acoustic-content-sdk/ng-edit > AcNgInlineEditServiceModule

AcNgInlineEditServiceModule class

Provides token ACOUSTIC_TOKEN_INLINE_EDIT_SERVICE requires a ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER for the backend

Signature:

export declare class AcNgInlineEditServiceModule 

Constructors

Constructor Modifiers Description
(constructor)(aInlineEditService, aSelectedCellConsumer, aLoggerService) Constructs a new instance of the AcNgInlineEditServiceModule class

首页 @acoustic-content-sdk/ng-edit > AcNgParentInlineEditProviderModule

AcNgParentInlineEditProviderModule class

从父框架公开内联编辑提供程序ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER。 提供程序必须已通过该窗口上的 INLINE_EDIT_PROVIDER_ID 常量公开。

取决于:ACOUSTIC_TOKEN_EDIT_HOST_WINDOWACOUSTIC_TOKEN_LOGGER_SERVICE

签名:

export declare class AcNgParentInlineEditProviderModule 

Constructors

Constructor Modifiers Description
(constructor)(aLoggerService) Constructs a new instance of the AcNgParentInlineEditProviderModule class

< a66ee8572fc758>fec href="#_a30123aefd4726b3438415e6dc03e4250c696926643d7594d19b8a9c5bc79d46">主页 > @acoustic-content-sdk/ng-edit > AcNgSelectableDirectiveModule

AcNgSelectableDirectiveModule class

Module implementing the WchSelectableDirectiveService for the edit case

Signature:

export declare class AcNgSelectableDirectiveModule 

主页 > @acoustic-content-sdk/ng-edit > getInlineEditProvider

getInlineEditProvider() function

从另一个窗口访问 WchInlineEditProviderV2。 必须启用此其他窗口以进行跨框架访问。 该提供程序必须通过该窗口上的 INLINE_EDIT_PROVIDER_ID 键可用。

签名:

export declare function getInlineEditProvider(aHostWindow: WindowType, aLogSvc: LoggerService): Observable<WchInlineEditProviderV2>;

Parameters

Parameter Type Description
aHostWindow WindowType the parent window
aLogSvc LoggerService logger

返回:

Observable

内联编辑提供程序的可观察

对象

主页 > @acoustic-content-sdk/ng-edit > internalGetInlineEditProvider

internalGetInlineEditProvider() function

从另一个窗口访问 WchInlineEditProviderV2。 必须启用此其他窗口以进行跨框架访问。

签名:

export declare function internalGetInlineEditProvider(aHostWindow: WindowType, logger: Logger): Observable<WchInlineEditProviderV2>;

Parameters

Parameter Type Description
aHostWindow WindowType the parent window
logger Logger logger

返回:

Observable

内联编辑提供程序的可观察

对象

主页 > @acoustic-content-sdk/ng-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/ng-edit > AcNgEditDirectivesModule > (constructor)

AcNgEditDirectivesModule.(constructor)

Constructs a new instance of the AcNgEditDirectivesModule class

Signature:

constructor(aLoggerService: LoggerService);

Parameters

Parameter Type Description
aLoggerService LoggerService

主页 > @acoustic-content-sdk/ng-edit > AcNgEditComponentsModule > (constructor)

AcNgEditComponentsModule.(constructor)

Constructs a new instance of the AcNgEditComponentsModule class

Signature:

constructor(aLoggerService: LoggerService);

Parameters

Parameter Type Description
aLoggerService LoggerService

主页 > @acoustic-content-sdk/ng-edit > AcNgEditComponentsModule > VERSION

AcNgEditComponentsModule.VERSION property

Exposes the version information of this module

Signature:

VERSION: WchSdkVersion;

首页 > @acoustic-content-sdk/ng-edit > AcNgInlineEditSelectionModule > (constructor)

AcNgInlineEditSelectionModule.(constructor)

Constructs a new instance of the AcNgInlineEditSelectionModule class

Signature:

constructor(aSelService: WchInlineEditSelectionService);

Parameters

Parameter Type Description
aSelService WchInlineEditSelectionService

首页 > @acoustic-content-sdk/ng-edit > AcNgInlineEditServiceModule > (constructor)

AcNgInlineEditServiceModule.(constructor)

Constructs a new instance of the AcNgInlineEditServiceModule class

Signature:

constructor(aInlineEditService: WchInlineEditServiceV2, aSelectedCellConsumer?: Consumer<string>, aLoggerService?: LoggerService);

Parameters

Parameter Type Description
aInlineEditService WchInlineEditServiceV2
aSelectedCellConsumer Consumer&lt;string&gt;
aLoggerService LoggerService

首页 > @acoustic-content-sdk/ng-edit > AcNgParentInlineEditProviderModule > (构造函数)

AcNgParentInlineEditProviderModule.(constructor)

构造 AcNgParentInlineEditProviderModule 类的新实例

签名:

constructor(aLoggerService: LoggerService);

Parameters

Parameter Type Description
aLoggerService LoggerService

npm

Module to attach inline-edit functionality to an WCH based Angular application.

Table of Contents

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

ng-edit package

Module to attach inline-edit functionality to an WCH based Angular application.

Classes

Class Description
AcNgEditableDirectiveModule Module implementing the WchEditableDirectiveService for the edit case
AcNgEditablePlaceholderDirectiveModule Module implementing the WchEditableDirectiveService for the edit case
AcNgEditComponentsModule Exports the components and directives used to attach inline edit to code level angular components.
AcNgEditDirectivesModule Exports the services required to implement the editable directives
AcNgHttpInlineEditProviderModule Provides token ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER
AcNgInlineEditSelectionModule
AcNgInlineEditServiceModule Provides token ACOUSTIC_TOKEN_INLINE_EDIT_SERVICE requires a ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER for the backend
AcNgParentInlineEditProviderModule Exposes the inline edit provider ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER from the parent frame. The provider must have been exposed via the INLINE_EDIT_PROVIDER_ID constant on that window.Depends on: ACOUSTIC_TOKEN_EDIT_HOST_WINDOW, ACOUSTIC_TOKEN_LOGGER_SERVICE
AcNgSelectableDirectiveModule Module implementing the WchSelectableDirectiveService for the edit case

Functions

Function Description
getInlineEditProvider(aHostWindow, aLogSvc) Accesses the WchInlineEditProviderV2 from another window. This other window must be enabled for cross frame access. The provider must be available via the INLINE_EDIT_PROVIDER_ID key on that window.
internalGetInlineEditProvider(aHostWindow, logger) Accesses the WchInlineEditProviderV2 from another window. This other window must be enabled for cross frame access.

Variables

Variable Description
VERSION Version and build number of the package

Home > @acoustic-content-sdk/ng-edit > AcNgEditableDirectiveModule

AcNgEditableDirectiveModule class

Module implementing the WchEditableDirectiveService for the edit case

Signature:

export declare class AcNgEditableDirectiveModule 

Home > @acoustic-content-sdk/ng-edit > AcNgEditablePlaceholderDirectiveModule

AcNgEditablePlaceholderDirectiveModule class

Module implementing the WchEditableDirectiveService for the edit case

Signature:

export declare class AcNgEditablePlaceholderDirectiveModule 

Home > @acoustic-content-sdk/ng-edit > AcNgEditComponentsModule

AcNgEditComponentsModule class

Exports the components and directives used to attach inline edit to code level angular components.

Signature:

export declare class AcNgEditComponentsModule 

Constructors

Constructor Modifiers Description
(constructor)(aLoggerService) Constructs a new instance of the AcNgEditComponentsModule class

Properties

Property Modifiers Type Description
VERSION WchSdkVersion Exposes the version information of this module

Home > @acoustic-content-sdk/ng-edit > AcNgEditDirectivesModule

AcNgEditDirectivesModule class

Exports the services required to implement the editable directives

Signature:

export declare class AcNgEditDirectivesModule 

Constructors

Constructor Modifiers Description
(constructor)(aLoggerService) Constructs a new instance of the AcNgEditDirectivesModule class

Home > @acoustic-content-sdk/ng-edit > AcNgHttpInlineEditProviderModule

AcNgHttpInlineEditProviderModule class

Provides token ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER

Signature:

export declare class AcNgHttpInlineEditProviderModule 

Home > @acoustic-content-sdk/ng-edit > AcNgInlineEditSelectionModule

AcNgInlineEditSelectionModule class

Signature:

export declare class AcNgInlineEditSelectionModule 

Constructors

Constructor Modifiers Description
(constructor)(aSelService) Constructs a new instance of the AcNgInlineEditSelectionModule class

Home > @acoustic-content-sdk/ng-edit > AcNgInlineEditServiceModule

AcNgInlineEditServiceModule class

Provides token ACOUSTIC_TOKEN_INLINE_EDIT_SERVICE requires a ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER for the backend

Signature:

export declare class AcNgInlineEditServiceModule 

Constructors

Constructor Modifiers Description
(constructor)(aInlineEditService, aSelectedCellConsumer, aLoggerService) Constructs a new instance of the AcNgInlineEditServiceModule class

Home > @acoustic-content-sdk/ng-edit > AcNgParentInlineEditProviderModule

AcNgParentInlineEditProviderModule class

Exposes the inline edit provider ACOUSTIC_TOKEN_INLINE_EDIT_PROVIDER from the parent frame. The provider must have been exposed via the INLINE_EDIT_PROVIDER_ID constant on that window.

Depends on: ACOUSTIC_TOKEN_EDIT_HOST_WINDOW, ACOUSTIC_TOKEN_LOGGER_SERVICE

Signature:

export declare class AcNgParentInlineEditProviderModule 

Constructors

Constructor Modifiers Description
(constructor)(aLoggerService) Constructs a new instance of the AcNgParentInlineEditProviderModule class

Home > @acoustic-content-sdk/ng-edit > AcNgSelectableDirectiveModule

AcNgSelectableDirectiveModule class

Module implementing the WchSelectableDirectiveService for the edit case

Signature:

export declare class AcNgSelectableDirectiveModule 

Home > @acoustic-content-sdk/ng-edit > getInlineEditProvider

getInlineEditProvider() function

Accesses the WchInlineEditProviderV2 from another window. This other window must be enabled for cross frame access. The provider must be available via the INLINE_EDIT_PROVIDER_ID key on that window.

Signature:

export declare function getInlineEditProvider(aHostWindow: WindowType, aLogSvc: LoggerService): Observable<WchInlineEditProviderV2>;

Parameters

Parameter Type Description
aHostWindow WindowType the parent window
aLogSvc LoggerService logger

Returns:

Observable<WchInlineEditProviderV2>

an observable of the inline edit provider

Home > @acoustic-content-sdk/ng-edit > internalGetInlineEditProvider

internalGetInlineEditProvider() function

Accesses the WchInlineEditProviderV2 from another window. This other window must be enabled for cross frame access.

Signature:

export declare function internalGetInlineEditProvider(aHostWindow: WindowType, logger: Logger): Observable<WchInlineEditProviderV2>;

Parameters

Parameter Type Description
aHostWindow WindowType the parent window
logger Logger logger

Returns:

Observable<WchInlineEditProviderV2>

an observable of the inline edit provider

Home > @acoustic-content-sdk/ng-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/ng-edit > AcNgEditDirectivesModule > (constructor)

AcNgEditDirectivesModule.(constructor)

Constructs a new instance of the AcNgEditDirectivesModule class

Signature:

constructor(aLoggerService: LoggerService);

Parameters

Parameter Type Description
aLoggerService LoggerService

Home > @acoustic-content-sdk/ng-edit > AcNgEditComponentsModule > (constructor)

AcNgEditComponentsModule.(constructor)

Constructs a new instance of the AcNgEditComponentsModule class

Signature:

constructor(aLoggerService: LoggerService);

Parameters

Parameter Type Description
aLoggerService LoggerService

Home > @acoustic-content-sdk/ng-edit > AcNgEditComponentsModule > VERSION

AcNgEditComponentsModule.VERSION property

Exposes the version information of this module

Signature:

VERSION: WchSdkVersion;

Home > @acoustic-content-sdk/ng-edit > AcNgInlineEditSelectionModule > (constructor)

AcNgInlineEditSelectionModule.(constructor)

Constructs a new instance of the AcNgInlineEditSelectionModule class

Signature:

constructor(aSelService: WchInlineEditSelectionService);

Parameters

Parameter Type Description
aSelService WchInlineEditSelectionService

Home > @acoustic-content-sdk/ng-edit > AcNgInlineEditServiceModule > (constructor)

AcNgInlineEditServiceModule.(constructor)

Constructs a new instance of the AcNgInlineEditServiceModule class

Signature:

constructor(aInlineEditService: WchInlineEditServiceV2, aSelectedCellConsumer?: Consumer<string>, aLoggerService?: LoggerService);

Parameters

Parameter Type Description
aInlineEditService WchInlineEditServiceV2
aSelectedCellConsumer Consumer&lt;string&gt;
aLoggerService LoggerService

Home > @acoustic-content-sdk/ng-edit > AcNgParentInlineEditProviderModule > (constructor)

AcNgParentInlineEditProviderModule.(constructor)

Constructs a new instance of the AcNgParentInlineEditProviderModule class

Signature:

constructor(aLoggerService: LoggerService);

Parameters

Parameter Type Description
aLoggerService LoggerService
更多

友情链接

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