@serenity-is/corelib / PropertyDialog
BaseDialog
<P
>
• TItem
• P
new PropertyDialog<
TItem
,P
>(props
?):PropertyDialog
<TItem
,P
>
WidgetProps
<P
>
PropertyDialog
<TItem
, P
>
src/ui/dialogs/propertydialog.tsx:19
protected
dialog:Dialog
src/ui/dialogs/basedialog.tsx:20
readonly
domNode:HTMLElement
readonly
idPrefix:string
protected
readonly
options:WidgetProps
<P
>
protected
propertyGrid:PropertyGrid
<PropertyGridOptions
>
src/ui/dialogs/propertydialog.tsx:193
protected
propertyItemsData:PropertyItemsData
src/ui/dialogs/propertydialog.tsx:15
protected
tabs:Fluent
<HTMLElement
>
src/ui/dialogs/basedialog.tsx:17
protected
toolbar:Toolbar
<ToolbarOptions
>
src/ui/dialogs/basedialog.tsx:18
readonly
uniqueName:string
protected
validator:any
src/ui/dialogs/basedialog.tsx:19
readonly
static
isComponent:true
=true
static
typeInfo:ClassTypeInfo
<"Serenity.Widget"
>
get dialogTitle():
string
string
set dialogTitle(
value
):void
string
void
src/ui/dialogs/basedialog.tsx:210
get element():
Fluent
<HTMLElement
>
Returns a Fluent(this.domNode) object
Fluent
<HTMLElement
>
get entity():
TItem
TItem
set entity(
value
):void
TItem
void
src/ui/dialogs/propertydialog.tsx:170
get entityId():
any
any
set entityId(
value
):void
any
void
src/ui/dialogs/propertydialog.tsx:178
get props():
WidgetProps
<P
>
WidgetProps
<P
>
protected
addCssClass():void
void
src/ui/dialogs/basedialog.tsx:57
addValidationRule(
rule
,uniqueName
?):void
(input
) => string
string
void
addValidationRule(
uniqueName
,rule
):void
string
(input
) => string
void
protected
afterInit():void
void
src/ui/dialogs/propertydialog.tsx:33
protected
afterRender(callback
):void
() => void
void
arrange():
void
void
src/ui/dialogs/basedialog.tsx:183
protected
byId<TElement
>(id
):Fluent
<TElement
>
• TElement extends HTMLElement
= HTMLElement
string
Fluent
<TElement
>
protected
cancelClick():void
void
src/ui/dialogs/propertydialog.tsx:83
change(
handler
):void
(e
) => void
void
changeSelect2(
handler
):void
(e
) => void
void
protected
deferRender():boolean
boolean
destroy():
void
void
src/ui/dialogs/propertydialog.tsx:40
dialogClose(
result
?):void
string
void
src/ui/dialogs/basedialog.tsx:206
dialogOpen(
asPanel
?):void
boolean
void
src/ui/dialogs/basedialog.tsx:120
protected
findById<TElement
>(id
):TElement
• TElement extends HTMLElement
= HTMLElement
string
TElement
protected
getCssClass():string
string
protected
getCustomAttribute<TAttr
>(attrType
,inherit
):TAttr
• TAttr
(...args
) => TAttr
boolean
= true
TAttr
protected
getDialogButtons():DialogButton
[]
src/ui/dialogs/propertydialog.tsx:55
protected
getDialogOptions():DialogOptions
src/ui/dialogs/propertydialog.tsx:49
protected
getFormKey():string
string
src/ui/dialogs/propertydialog.tsx:96
getGridField():
Fluent
<HTMLElement
>
Fluent
<HTMLElement
>
protected
getInitialDialogTitle():string
string
BaseDialog
.getInitialDialogTitle
src/ui/dialogs/basedialog.tsx:61
protected
getPropertyGridOptions():PropertyGridOptions
src/ui/dialogs/propertydialog.tsx:117
protected
getPropertyItems():PropertyItem
[]
src/ui/dialogs/propertydialog.tsx:126
protected
getPropertyItemsData():PropertyItemsData
src/ui/dialogs/propertydialog.tsx:130
protected
getPropertyItemsDataAsync():Promise
<PropertyItemsData
>
Promise
<PropertyItemsData
>
src/ui/dialogs/propertydialog.tsx:149
protected
getSaveEntity():TItem
TItem
src/ui/dialogs/propertydialog.tsx:158
protected
getToolbarButtons():ToolButton
[]
src/ui/dialogs/basedialog.tsx:148
protected
getValidatorOptions():any
any
BaseDialog
.getValidatorOptions
src/ui/dialogs/basedialog.tsx:163
protected
handleResponsive():void
void
src/ui/dialogs/basedialog.tsx:226
init():
this
this
protected
initDialog():void
void
src/ui/dialogs/basedialog.tsx:97
protected
initPropertyGrid():void
void
src/ui/dialogs/propertydialog.tsx:87
protected
initTabs():void
void
src/ui/dialogs/basedialog.tsx:219
protected
initToolbar():void
void
src/ui/dialogs/basedialog.tsx:152
protected
initUIDialog():void
void
src/ui/dialogs/basedialog.tsx:106
protected
initValidator():void
void
src/ui/dialogs/basedialog.tsx:167
internalRenderContents():
void
void
BaseDialog
.internalRenderContents
protected
isClosable():boolean
boolean
src/ui/dialogs/propertydialog.tsx:16
protected
isStatic():boolean
boolean
src/ui/dialogs/propertydialog.tsx:17
protected
isStaticPanel():boolean
boolean
src/ui/dialogs/basedialog.tsx:65
protected
legacyTemplateRender():boolean
boolean
BaseDialog
.legacyTemplateRender
protected
loadInitialEntity():void
void
src/ui/dialogs/propertydialog.tsx:166
protected
okClick():void
void
src/ui/dialogs/propertydialog.tsx:71
protected
okClickValidated():void
void
src/ui/dialogs/propertydialog.tsx:79
onClose(
handler
,opt
?):void
Attaches a dialog/modal/panel close event handler. See Dialog.close for more info.
(result
?, e
?) => void
boolean
boolean
void
src/ui/dialogs/basedialog.tsx:139
protected
onDialogClose(result
?):void
string
void
src/ui/dialogs/basedialog.tsx:189
protected
onDialogOpen():void
void
src/ui/dialogs/basedialog.tsx:131
onOpen(
handler
,opt
?):void
Attaches a dialog/modal/panel open event handler. See Dialog.open for more info.
(e
?) => void
boolean
boolean
void
src/ui/dialogs/basedialog.tsx:144
protected
propertyItemsReady(itemsData
):void
void
src/ui/dialogs/propertydialog.tsx:27
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.
any
protected
renderContents():any
any
src/ui/dialogs/propertydialog.tsx:195
protected
resetValidation():void
void
src/ui/dialogs/basedialog.tsx:175
protected
syncOrAsyncThen<T
>(syncMethod
,asyncMethod
,then
):void
• T
() => T
() => PromiseLike
<T
>
(v
) => void
void
protected
updateTitle():void
void
src/ui/dialogs/propertydialog.tsx:190
protected
useAsync():boolean
boolean
src/ui/dialogs/propertydialog.tsx:36
protected
useIdPrefix():IdPrefixType
protected
validateBeforeSave():boolean
boolean
src/ui/dialogs/propertydialog.tsx:186
protected
validateForm():boolean
boolean
src/ui/dialogs/basedialog.tsx:179
static
create<TWidget
,P
>(params
):TWidget
• TWidget extends Widget
<P
>
• P
CreateWidgetParams
<TWidget
, P
>
TWidget
static
createDefaultElement():HTMLDivElement
HTMLDivElement
BaseDialog
.createDefaultElement
src/ui/dialogs/basedialog.tsx:15
static
getWidgetName(type
):string
Function
string