@serenity-is/corelib / HtmlReportContentEditor
Class: HtmlReportContentEditor<P>
Type parameters
Name | Type |
---|---|
P |
extends HtmlContentEditorOptions = HtmlContentEditorOptions |
Hierarchy
-
↳
HtmlReportContentEditor
Table of contents
Constructors
Properties
Accessors
Methods
- addCssClass
- addValidationRule
- change
- changeSelect2
- destroy
- getConfig
- getCssClass
- getCustomAttribute
- getEditorInstance
- getFieldElement
- getGridField
- getLanguage
- get_readOnly
- get_value
- init
- instanceReady
- internalInit
- internalRenderContents
- render
- renderContents
- set_readOnly
- set_value
- syncOrAsyncThen
- useIdPrefix
- create
- createDefaultElement
- getCKEditorBasePath
- getWidgetName
- includeCKEditor
Constructors
constructor
• new HtmlReportContentEditor<P
>(props
): HtmlReportContentEditor
<P
>
Type parameters
Name | Type |
---|---|
P |
extends HtmlContentEditorOptions = HtmlContentEditorOptions |
Parameters
Name | Type |
---|---|
props |
EditorProps <P > |
Returns
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:25
Properties
domNode
• Readonly
domNode: HTMLTextAreaElement
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:21
idPrefix
• Readonly
idPrefix: string
Inherited from
Defined in
options
• Protected
Readonly
options: WidgetProps
<EditorProps
<P
>>
Inherited from
Defined in
uniqueName
• Protected
Readonly
uniqueName: string
Inherited from
Defined in
CKEditorBasePath
▪ Static
CKEditorBasePath: string
Inherited from
HtmlContentEditor.CKEditorBasePath
Defined in
src/ui/editors/htmlcontenteditor.ts:198
CKEditorVer
▪ Static
CKEditorVer: string
= "4.22.1"
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:197
typeInfo
▪ Static
typeInfo: ClassTypeInfo
<"Serenity.EditorWidget"
>
Inherited from
Defined in
Accessors
element
• get
element(): Fluent
<HTMLElement
>
Returns a Fluent(this.domNode) object
Returns
Fluent
<HTMLElement
>
Inherited from
HtmlContentEditor.element
Defined in
props
• get
props(): WidgetProps
<P
>
Returns
WidgetProps
<P
>
Inherited from
HtmlContentEditor.props
Defined in
value
• get
value(): string
Returns
string
Inherited from
HtmlContentEditor.value
Defined in
src/ui/editors/htmlcontenteditor.ts:162
• set
value(v
): void
Parameters
Name | Type |
---|---|
v |
string |
Returns
void
Inherited from
HtmlContentEditor.value
Defined in
src/ui/editors/htmlcontenteditor.ts:173
Methods
addCssClass
▸ addCssClass(): void
Returns
void
Inherited from
Defined in
addValidationRule
▸ addValidationRule(rule
, uniqueName?
): void
Parameters
Name | Type |
---|---|
rule |
(input : HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ) => string |
uniqueName? |
string |
Returns
void
Inherited from
HtmlContentEditor.addValidationRule
Defined in
▸ addValidationRule(uniqueName
, rule
): void
Parameters
Name | Type |
---|---|
uniqueName |
string |
rule |
(input : HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ) => string |
Returns
void
Inherited from
HtmlContentEditor.addValidationRule
Defined in
change
▸ change(handler
): void
Parameters
Name | Type |
---|---|
handler |
(e : Event ) => void |
Returns
void
Inherited from
Defined in
changeSelect2
▸ changeSelect2(handler
): void
Parameters
Name | Type |
---|---|
handler |
(e : Event ) => void |
Returns
void
Inherited from
HtmlContentEditor.changeSelect2
Defined in
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:146
getConfig
▸ getConfig(): CKEditorConfig
Returns
Overrides
Defined in
src/ui/editors/htmlcontenteditor.ts:255
getCssClass
▸ getCssClass(): string
Returns
string
Inherited from
Defined in
getCustomAttribute
▸ getCustomAttribute<TAttr
>(attrType
, inherit?
): TAttr
Type parameters
Name |
---|
TAttr |
Parameters
Name | Type | Default value |
---|---|---|
attrType |
(...args : any []) => TAttr |
undefined |
inherit |
boolean |
true |
Returns
TAttr
Inherited from
HtmlContentEditor.getCustomAttribute
Defined in
getEditorInstance
▸ getEditorInstance(): any
Returns
any
Inherited from
HtmlContentEditor.getEditorInstance
Defined in
src/ui/editors/htmlcontenteditor.ts:141
getFieldElement
▸ getFieldElement(): HTMLElement
Returns
HTMLElement
Inherited from
HtmlContentEditor.getFieldElement
Defined in
getGridField
▸ getGridField(): Fluent
<HTMLElement
>
Returns
Fluent
<HTMLElement
>
Inherited from
HtmlContentEditor.getGridField
Defined in
getLanguage
▸ getLanguage(): string
Returns
string
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:72
get_readOnly
▸ get_readOnly(): boolean
Returns
boolean
Inherited from
HtmlContentEditor.get_readOnly
Defined in
src/ui/editors/htmlcontenteditor.ts:177
get_value
▸ get_value(): string
Returns
string
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:152
init
▸ init(): this
Returns
this
Inherited from
Defined in
instanceReady
▸ instanceReady(x
): void
Parameters
Name | Type |
---|---|
x |
any |
Returns
void
Inherited from
HtmlContentEditor.instanceReady
Defined in
src/ui/editors/htmlcontenteditor.ts:60
internalInit
▸ internalInit(): void
Returns
void
Inherited from
HtmlContentEditor.internalInit
Defined in
internalRenderContents
▸ internalRenderContents(): void
Returns
void
Inherited from
HtmlContentEditor.internalRenderContents
Defined in
render
▸ render(): any
Returns the main element for this widget or the document fragment. As widgets may get their elements from props unlike regular JSX widgets, this method should not be overridden. Override renderContents() instead.
Returns
any
Inherited from
Defined in
renderContents
▸ renderContents(): any
Returns
any
Inherited from
HtmlContentEditor.renderContents
Defined in
set_readOnly
▸ set_readOnly(value
): void
Parameters
Name | Type |
---|---|
value |
boolean |
Returns
void
Inherited from
HtmlContentEditor.set_readOnly
Defined in
src/ui/editors/htmlcontenteditor.ts:181
set_value
▸ set_value(value
): void
Parameters
Name | Type |
---|---|
value |
string |
Returns
void
Inherited from
Defined in
src/ui/editors/htmlcontenteditor.ts:166
syncOrAsyncThen
▸ syncOrAsyncThen<T
>(syncMethod
, asyncMethod
, then
): void
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
syncMethod |
() => T |
asyncMethod |
() => PromiseLike <T > |
then |
(v : T ) => void |
Returns
void
Inherited from
HtmlContentEditor.syncOrAsyncThen
Defined in
useIdPrefix
▸ useIdPrefix(): IdPrefixType
Returns
Inherited from
Defined in
create
▸ create<TWidget
, P
>(params
): TWidget
Type parameters
Name | Type |
---|---|
TWidget |
extends Widget <P > |
P |
P |
Parameters
Name | Type |
---|---|
params |
CreateWidgetParams <TWidget , P > |
Returns
TWidget
Inherited from
Defined in
createDefaultElement
▸ createDefaultElement(): HTMLTextAreaElement
Returns
HTMLTextAreaElement
Inherited from
HtmlContentEditor.createDefaultElement
Defined in
src/ui/editors/htmlcontenteditor.ts:23
getCKEditorBasePath
▸ getCKEditorBasePath(): string
Returns
string
Inherited from
HtmlContentEditor.getCKEditorBasePath
Defined in
src/ui/editors/htmlcontenteditor.ts:200
getWidgetName
▸ getWidgetName(type
): string
Parameters
Name | Type |
---|---|
type |
Function |
Returns
string
Inherited from
HtmlContentEditor.getWidgetName
Defined in
includeCKEditor
▸ includeCKEditor(then
): void
Parameters
Name | Type |
---|---|
then |
() => void |
Returns
void
Inherited from
HtmlContentEditor.includeCKEditor