All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web.studio.upl.formsectioneditorpanel.upl Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
// UPL template for form section editor panel
// Copyright 2021-2024 FlowCentral Technologies Limited.
// 
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
// 
// http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.

!fc-formsectioneditorpanel
    dialogBodyComponents:$c{formPanel}
    dialogActionLayout:$d{!ui-horizontal style:$s{width:100%;}}
    dialogActionComponents:$c{dialogActionPanel}
	
//Form   
!ui-formpanel:formPanel
	layout:$d{!ui-vertical style:$s{table-layout:fixed;width:100%;}}
    formCaptionSuffix:$s{:} formBinding:$g{dialogFormBinding} formColumns:2
	formSection:$d{!ui-section components:$c{frmName frmLabel frmColumns frmPanel
		frmVisible frmEditable frmDisabled}}
	
!ui-text:frmName styleClass:$e{fc-formfield} caption:$m{formeditor.section.name} binding:name required:true focus:true
!ui-text:frmLabel styleClass:$e{fc-formfield} caption:$m{formeditor.section.label} maxLen:64 binding:label
!ui-select:frmColumns styleClass:$e{fc-formfield} caption:$m{formeditor.section.columns} binding:columns required:true
	list:formcolumnstypelist blankOption:$s{}
	eventHandler:$d{!ui-event event:onchange action:$c{columnChangeAct}}
!ui-select:frmPanel styleClass:$e{fc-formfield} caption:$m{formeditor.section.panel} binding:panel
	list:studioformsectionpanellist blankOption:$s{} listParams:$l{entity}
!ui-checkbox:frmVisible caption:$m{formeditor.section.visible} binding:visible layoutCaption:true
!ui-checkbox:frmEditable caption:$m{formeditor.section.editable} binding:editable layoutCaption:true
!ui-checkbox:frmDisabled caption:$m{formeditor.section.disabled} binding:disabled layoutCaption:true

// Action buttons
!ui-panel:dialogActionPanel layout:$d{!ui-horizontal} components:$c{addBtn applyBtn cancelBtn}
!ui-button:addBtn caption:$m{button.add} styleClass:$e{fc-actbutton}
	eventHandler:$d{!ui-event event:onclick action:$c{addAct}}
!ui-button:applyBtn caption:$m{button.apply} styleClass:$e{fc-actbutton}
	eventHandler:$d{!ui-event event:onclick action:$c{applyAct}}
!ui-button:cancelBtn caption:$m{button.cancel}
    eventHandler:$d{!ui-event event:onclick action:$c{closeDialogAct}}

//Actions
!ui-postcommand:applyAct command:apply components:$c{formPanel}
    validations:$c{formValidation} refresh:$f{refreshOnApply}
!ui-postcommand:addAct command:add components:$c{formPanel}
    validations:$c{formValidation} refresh:$f{refreshOnApply}
!ui-postcommand:columnChangeAct command:columnChange components:$c{formPanel}

// Validations
!ui-validation:formValidation components:$c{formPanel}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy