EDITOR.tsx.ftl 1.3 KB
<#if item.getEditorParam("PICKUPVIEW",true)??>
<#if item.getRefPickupPSAppView()??>
<#assign pickupview = item.getRefPickupPSAppView()>
<#assign renderItem>
<#if item.itemRender??>
renderItem={(item: any) => {
    return (${item.itemRender.code});
}}</#if></#assign>
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','')??>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' ${renderItem}  valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}'  url={this.url} editortype="" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}'<#if  pickupview.getOpenMode()??><#assign openMode=pickupview.getOpenMode()>  ,<#if openMode !=''>placement:'${openMode}'<#else>placement:''</#if></#if> }}</#if> style="${item.getEditorCssStyle()}"  on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
</#if>
</#if>