@serenity-is/corelib / LookupEditorBase
ComboboxEditor
<P
,TItem
>
• P extends LookupEditorOptions
• TItem
new LookupEditorBase<
P
,TItem
>(props
):LookupEditorBase
<P
,TItem
>
EditorProps
<P
>
LookupEditorBase
<P
, TItem
>
src/ui/editors/lookupeditor.ts:18
protected
cascadeLink:CascadedWidgetLink
<Widget
<any
>>
src/ui/editors/comboboxeditor.tsx:576
readonly
domNode:HTMLInputElement
src/ui/editors/comboboxeditor.tsx:46
readonly
idPrefix:string
protected
lastCreateTerm:string
src/ui/editors/comboboxeditor.tsx:51
protected
lookup:Lookup
<TItem
>
src/ui/editors/lookupeditor.ts:59
onInitNewEntity: (
entity
) =>void
TItem
void
ComboboxEditor
.onInitNewEntity
src/ui/editors/comboboxeditor.tsx:747
openDialogAsPanel:
boolean
ComboboxEditor
.openDialogAsPanel
src/ui/editors/comboboxeditor.tsx:859
protected
readonly
options:WidgetProps
<EditorProps
<P
>>
readonly
uniqueName:string
readonly
static
isComponent:true
=true
static
typeInfo:ClassTypeInfo
<"Serenity.EditorWidget"
>
src/ui/editors/editorwidget.ts:17
get cascadeField():
string
string
set cascadeField(
value
):void
string
void
src/ui/editors/comboboxeditor.tsx:620
get cascadeFrom():
string
string
set cascadeFrom(
value
):void
string
void
src/ui/editors/comboboxeditor.tsx:601
get cascadeValue():
any
any
set cascadeValue(
value
):void
any
void
src/ui/editors/comboboxeditor.tsx:636
get element():
Fluent
<HTMLElement
>
Returns a Fluent(this.domNode) object
Fluent
<HTMLElement
>
get filterField():
string
string
set filterField(
value
):void
string
void
src/ui/editors/comboboxeditor.tsx:656
get filterValue():
any
any
set filterValue(
value
):void
any
void
src/ui/editors/comboboxeditor.tsx:672
get
protected
itemById():object
object
set
protected
itemById(value
):void
void
src/ui/editors/comboboxeditor.tsx:274
get items():
ComboboxItem
<TItem
>[]
ComboboxItem
<TItem
>[]
set items(
value
):void
ComboboxItem
<TItem
>[]
void
src/ui/editors/comboboxeditor.tsx:257
get props():
WidgetProps
<P
>
WidgetProps
<P
>
get readOnly():
boolean
boolean
set readOnly(
value
):void
boolean
void
src/ui/editors/editorwidget.ts:23
get selectedItem():
TItem
TItem
src/ui/editors/comboboxeditor.tsx:497
get selectedItems():
TItem
[]
TItem
[]
src/ui/editors/comboboxeditor.tsx:507
get text():
string
string
src/ui/editors/comboboxeditor.tsx:546
get value():
string
string
set value(
v
):void
string
void
src/ui/editors/comboboxeditor.tsx:478
get values():
string
[]
string
[]
set values(
value
):void
string
[]
void
src/ui/editors/comboboxeditor.tsx:526
protected
abortPendingQuery():void
void
ComboboxEditor
.abortPendingQuery
src/ui/editors/comboboxeditor.tsx:159
protected
addCssClass():void
void
protected
addInplaceCreate(addTitle
,editTitle
):void
string
string
void
ComboboxEditor
.addInplaceCreate
src/ui/editors/comboboxeditor.tsx:313
addItem(
item
):void
ComboboxItem
<TItem
>
void
src/ui/editors/comboboxeditor.tsx:296
addOption(
key
,text
,source
?,disabled
?):void
string
string
any
boolean
void
src/ui/editors/comboboxeditor.tsx:304
addValidationRule(
rule
,uniqueName
?):void
(input
) => string
string
void
ComboboxEditor
.addValidationRule
addValidationRule(
uniqueName
,rule
):void
string
(input
) => string
void
ComboboxEditor
.addValidationRule
protected
afterRender(callback
):void
() => void
void
protected
allowClear():boolean
boolean
src/ui/editors/comboboxeditor.tsx:150
protected
asyncSearch(query
):Promise
<ComboboxSearchResult
<TItem
>>
Promise
<ComboboxSearchResult
<TItem
>>
src/ui/editors/lookupeditor.ts:109
protected
byId<TElement
>(id
):Fluent
<TElement
>
• TElement extends HTMLElement
= HTMLElement
string
Fluent
<TElement
>
protected
cascadeItems(items
):TItem
[]
TItem
[]
TItem
[]
src/ui/editors/comboboxeditor.tsx:688
change(
handler
):void
(e
) => void
void
changeSelect2(
handler
):void
(e
) => void
void
clearItems():
void
void
src/ui/editors/comboboxeditor.tsx:288
protected
createEditDialog(callback
):void
(dlg
) => void
void
ComboboxEditor
.createEditDialog
src/ui/editors/comboboxeditor.tsx:737
protected
deferRender():boolean
boolean
destroy():
void
void
src/ui/editors/lookupeditor.ts:31
protected
editDialogDataChange():void
void
ComboboxEditor
.editDialogDataChange
src/ui/editors/lookupeditor.ts:141
protected
emptyItemText():string
string
src/ui/editors/comboboxeditor.tsx:102
protected
filterItems(items
):TItem
[]
TItem
[]
TItem
[]
src/ui/editors/comboboxeditor.tsx:710
protected
findById<TElement
>(id
):TElement
• TElement extends HTMLElement
= HTMLElement
string
TElement
protected
get_cascadeField():string
string
ComboboxEditor
.get_cascadeField
src/ui/editors/comboboxeditor.tsx:616
protected
get_cascadeFrom():string
string
ComboboxEditor
.get_cascadeFrom
src/ui/editors/comboboxeditor.tsx:597
protected
get_cascadeValue():any
any
ComboboxEditor
.get_cascadeValue
src/ui/editors/comboboxeditor.tsx:632
get_delimited():
boolean
boolean
src/ui/editors/comboboxeditor.tsx:253
protected
get_filterField():string
string
ComboboxEditor
.get_filterField
src/ui/editors/comboboxeditor.tsx:652
protected
get_filterValue():any
any
ComboboxEditor
.get_filterValue
src/ui/editors/comboboxeditor.tsx:668
protected
get_itemByKey():object
object
src/ui/editors/comboboxeditor.tsx:448
protected
get_items():ComboboxItem
<TItem
>[]
ComboboxItem
<TItem
>[]
src/ui/editors/comboboxeditor.tsx:444
get_readOnly():
boolean
boolean
src/ui/editors/comboboxeditor.tsx:550
protected
get_text():string
string
src/ui/editors/comboboxeditor.tsx:538
get_value():
string
string
src/ui/editors/comboboxeditor.tsx:474
protected
get_values():string
[]
string
[]
src/ui/editors/comboboxeditor.tsx:522
protected
getCascadeFromValue(parent
):any
Widget
<any
>
any
ComboboxEditor
.getCascadeFromValue
src/ui/editors/comboboxeditor.tsx:572
protected
getComboboxContainer():HTMLElement
HTMLElement
ComboboxEditor
.getComboboxContainer
src/ui/editors/comboboxeditor.tsx:440
protected
getComboboxOptions():ComboboxOptions
<any
>
ComboboxOptions
<any
>
ComboboxEditor
.getComboboxOptions
src/ui/editors/comboboxeditor.tsx:163
getCreateSearchChoice(
getName
): (s
) =>object
(z
) => string
Function
string
object
id:
string
text:
string
ComboboxEditor
.getCreateSearchChoice
src/ui/editors/comboboxeditor.tsx:375
protected
getCssClass():string
string
protected
getCustomAttribute<TAttr
>(attrType
,inherit
):TAttr
• TAttr
(...args
) => TAttr
boolean
= true
TAttr
ComboboxEditor
.getCustomAttribute
protected
getDialogTypeKey():string
string
ComboboxEditor
.getDialogTypeKey
src/ui/editors/lookupeditor.ts:129
getEditValue(
property
,target
):void
any
void
src/ui/editors/comboboxeditor.tsx:431
getGridField():
Fluent
<HTMLElement
>
Fluent
<HTMLElement
>
protected
getIdField():any
any
src/ui/editors/lookupeditor.ts:73
protected
getItemDisabled(item
,lookup
):boolean
TItem
Lookup
<TItem
>
boolean
src/ui/editors/lookupeditor.ts:94
protected
getItems(lookup
):TItem
[]
Lookup
<TItem
>
TItem
[]
src/ui/editors/lookupeditor.ts:69
protected
getItemText(item
,lookup
):any
TItem
Lookup
<TItem
>
any
src/ui/editors/lookupeditor.ts:77
protected
getLookup():Lookup
<TItem
>
Lookup
<TItem
>
src/ui/editors/lookupeditor.ts:65
protected
getLookupAsync():PromiseLike
<Lookup
<TItem
>>
PromiseLike
<Lookup
<TItem
>>
src/ui/editors/lookupeditor.ts:61
protected
getLookupKey():string
string
src/ui/editors/lookupeditor.ts:40
protected
getPageSize():number
number
src/ui/editors/comboboxeditor.tsx:107
protected
getTextField():any
any
src/ui/editors/comboboxeditor.tsx:122
protected
getTypeDelay():any
any
src/ui/editors/comboboxeditor.tsx:98
hasAsyncSource():
boolean
boolean
src/ui/editors/lookupeditor.ts:27
init():
this
this
protected
initNewEntity(entity
):void
TItem
void
src/ui/editors/comboboxeditor.tsx:749
protected
inplaceCreateClick(e
):void
Event
void
ComboboxEditor
.inplaceCreateClick
src/ui/editors/comboboxeditor.tsx:784
internalRenderContents():
void
void
ComboboxEditor
.internalRenderContents
protected
isAutoComplete():boolean
boolean
src/ui/editors/comboboxeditor.tsx:371
protected
isMultiple():boolean
boolean
src/ui/editors/comboboxeditor.tsx:155
protected
itemDisabled(item
):boolean
TItem
boolean
src/ui/editors/comboboxeditor.tsx:133
protected
itemId(item
):string
TItem
string
src/ui/editors/comboboxeditor.tsx:115
protected
itemText(item
):string
TItem
string
src/ui/editors/comboboxeditor.tsx:126
protected
legacyTemplateRender():boolean
boolean
ComboboxEditor
.legacyTemplateRender
protected
mapItem(item
):ComboboxItem
<TItem
>
TItem
ComboboxItem
<TItem
>
src/ui/editors/lookupeditor.ts:85
protected
mapItems(items
):ComboboxItem
<any
>[]
TItem
[]
ComboboxItem
<any
>[]
src/ui/editors/comboboxeditor.tsx:146
openDropdown():
void
void
src/ui/editors/comboboxeditor.tsx:855
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
protected
set_cascadeField(value
):void
string
void
ComboboxEditor
.set_cascadeField
src/ui/editors/comboboxeditor.tsx:624
protected
set_cascadeFrom(value
):void
string
void
ComboboxEditor
.set_cascadeFrom
src/ui/editors/comboboxeditor.tsx:605
protected
set_cascadeValue(value
):void
any
void
ComboboxEditor
.set_cascadeValue
src/ui/editors/comboboxeditor.tsx:640
protected
set_filterField(value
):void
string
void
ComboboxEditor
.set_filterField
src/ui/editors/comboboxeditor.tsx:660
protected
set_filterValue(value
):void
any
void
ComboboxEditor
.set_filterValue
src/ui/editors/comboboxeditor.tsx:676
set_readOnly(
value
):void
boolean
void
src/ui/editors/comboboxeditor.tsx:565
set_value(
value
):void
string
void
src/ui/editors/comboboxeditor.tsx:482
protected
set_values(value
):void
string
[]
void
src/ui/editors/comboboxeditor.tsx:530
protected
setCascadeFrom(value
):void
string
void
src/ui/editors/comboboxeditor.tsx:578
protected
setCreateTermOnNewEntity(entity
,term
):void
TItem
string
void
src/ui/editors/lookupeditor.ts:137
protected
setEditDialogReadOnly(dialog
):void
any
void
ComboboxEditor
.setEditDialogReadOnly
src/ui/editors/comboboxeditor.tsx:763
setEditValue(
source
,property
):void
any
void
src/ui/editors/comboboxeditor.tsx:421
protected
setTermOnNewEntity(entity
,term
,dialog
):void
TItem
string
any
void
ComboboxEditor
.setTermOnNewEntity
src/ui/editors/comboboxeditor.tsx:775
protected
syncOrAsyncThen<T
>(syncMethod
,asyncMethod
,then
):void
• T
() => T
() => PromiseLike
<T
>
(v
) => void
void
ComboboxEditor
.syncOrAsyncThen
updateItems():
void
void
src/ui/editors/lookupeditor.ts:98
protected
useIdPrefix():IdPrefixType
protected
useInplaceAdd():boolean
boolean
src/ui/editors/comboboxeditor.tsx:364
static
create<TWidget
,P
>(params
):TWidget
• TWidget extends Widget
<P
>
• P
CreateWidgetParams
<TWidget
, P
>
TWidget
static
createDefaultElement():HTMLInputElement
HTMLInputElement
ComboboxEditor
.createDefaultElement
src/ui/editors/comboboxeditor.tsx:45
static
filterByText<TItem
>(items
,getText
,term
):TItem
[]
• TItem
TItem
[]
(item
) => string
string
TItem
[]
src/ui/editors/comboboxeditor.tsx:452
static
getWidgetName(type
):string
Function
string