<AppSwitch
  name="{{item.codeName}}"
{{#eq ctrlType 'form'}}
  :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}}
{{#if item.psEditor.isReadOnly}}
  :readonly="{{item.psEditor.isReadOnly}}"
{{/if}}
{{#if item.psEditor.editorParams.size}}
  size="{{item.psEditor.editorParams.size}}"
{{/if}}
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
  :value="state.data.{{item.psEditor.name}}"
  @editorEvent="onEditorEvent"
{{/if}}
{{#eq ctrlType 'grid'}}
  :value="record.{{item.psEditor.name}}"
  @editorEvent="onEditorEvent($event,index)"
{{/eq}}
/> 
