Skip to content

Interface: IAIFeedbackFormCellProxy

AIFeedbackFormCellProxy is a developer-facing interface that provides access to an AIFeedback control and allows customizations. In addition, it provides access to the IFormCellProxy interface.

Hierarchy

Summary

Properties

Class Properties

Currently none in this class.

Inherited Properties

Methods

Class Methods

Inherited Methods

Methods

getCaption

getCaption(): string

Returns the Caption property value defined for the AIFeedback FormCell's control.

Overrides IFormCellProxy.getCaption

Returns: string


getStyle

getStyle(): string

Returns the current style classes applied to the AIFeedback FormCell's control.

Returns: string


getValue

getValue(): string

Returns the current value of the AIFeedback FormCell's control. Possible values are: "None", "Up", "Down".

Overrides IFormCellProxy.getValue

Returns: string


setCaption

setCaption(caption: string): Promise<any>

Sets the Caption property of the AIFeedback FormCell's control.

Overrides IFormCellProxy.setCaption

Parameters:

Name Type Description
caption string value to set.

Returns: Promise<any>


setStyle

setStyle(styleClass: string, target?: string): any

Sets the style of the AIFeedback FormCell's control. Supported target values are: "Background", "Caption", "VoteButtons". When no target is specified, the style is applied to the entire control.

Overrides IFormCellProxy.setStyle

Parameters:

Name Type Description
styleClass string the style class name or JSON string.
target? string optional target sub-view to apply the style to.

Returns: any


setValue

setValue(value: string, notify?: boolean): any

Sets the value of the AIFeedback FormCell's control. Accepted values are: "None", "Up", "Down" (case-sensitive). If an invalid value is provided (e.g. "Upp" or "up"), it will be silently reset to "None".

Overrides IFormCellProxy.setValue

Parameters:

Name Type Description
value string value to set.
notify? boolean whether to trigger the OnValueChange event on the FormCell's control.

Returns: any