@serenity-is/corelib / PasswordEditor
Class: PasswordEditor<TOptions>
Type parameters
Name | Type |
---|---|
TOptions |
Hierarchy
StringEditor
<TOptions
>↳
PasswordEditor
Table of contents
Constructors
Properties
Accessors
Methods
- addCssClass
- addValidationRule
- change
- changeSelect2
- destroy
- getCssClass
- getCustomAttribute
- getFieldElement
- getGridField
- get_value
- init
- internalInit
- internalRenderContents
- render
- renderContents
- set_value
- syncOrAsyncThen
- useIdPrefix
- create
- createDefaultElement
- getWidgetName
Constructors
constructor
• new PasswordEditor<TOptions
>(props
): PasswordEditor
<TOptions
>
Type parameters
Name | Type |
---|---|
TOptions |
Parameters
Name | Type |
---|---|
props |
EditorProps <TOptions > |
Returns
PasswordEditor
<TOptions
>
Inherited from
Defined in
Properties
domNode
• Readonly
domNode: HTMLInputElement
Inherited from
Defined in
src/ui/editors/stringeditor.ts:10
idPrefix
• Readonly
idPrefix: string
Inherited from
Defined in
options
• Protected
Readonly
options: WidgetProps
<EditorProps
<TOptions
>>
Inherited from
Defined in
uniqueName
• Protected
Readonly
uniqueName: string
Inherited from
Defined in
typeInfo
▪ Static
typeInfo: EditorTypeInfo
<"Serenity.PasswordEditor"
>
Overrides
Defined in
src/ui/editors/passwordeditor.ts:7
Accessors
element
• get
element(): Fluent
<HTMLElement
>
Returns a Fluent(this.domNode) object
Returns
Fluent
<HTMLElement
>
Inherited from
StringEditor.element
Defined in
props
• get
props(): WidgetProps
<P
>
Returns
WidgetProps
<P
>
Inherited from
StringEditor.props
Defined in
value
• get
value(): string
Returns
string
Inherited from
StringEditor.value
Defined in
src/ui/editors/stringeditor.ts:14
• set
value(value
): void
Parameters
Name | Type |
---|---|
value |
string |
Returns
void
Inherited from
StringEditor.value
Defined in
src/ui/editors/stringeditor.ts:22
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
StringEditor.addValidationRule
Defined in
▸ addValidationRule(uniqueName
, rule
): void
Parameters
Name | Type |
---|---|
uniqueName |
string |
rule |
(input : HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement ) => string |
Returns
void
Inherited from
StringEditor.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
Defined in
destroy
▸ destroy(): void
Returns
void
Inherited from
Defined in
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
StringEditor.getCustomAttribute
Defined in
getFieldElement
▸ getFieldElement(): HTMLElement
Returns
HTMLElement
Inherited from
Defined in
getGridField
▸ getGridField(): Fluent
<HTMLElement
>
Returns
Fluent
<HTMLElement
>
Inherited from
Defined in
get_value
▸ get_value(): string
Returns
string
Inherited from
Defined in
src/ui/editors/stringeditor.ts:18
init
▸ init(): this
Returns
this
Inherited from
Defined in
internalInit
▸ internalInit(): void
Returns
void
Inherited from
Defined in
internalRenderContents
▸ internalRenderContents(): void
Returns
void
Inherited from
StringEditor.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
Defined in
set_value
▸ set_value(value
): void
Parameters
Name | Type |
---|---|
value |
string |
Returns
void
Inherited from
Defined in
src/ui/editors/stringeditor.ts:26
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
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(): HTMLInputElement
Returns
HTMLInputElement
Overrides
StringEditor.createDefaultElement
Defined in
src/ui/editors/passwordeditor.ts:9
getWidgetName
▸ getWidgetName(type
): string
Parameters
Name | Type |
---|---|
type |
Function |
Returns
string