Namespace: form

Simplicite.UI.Globals.form

Global object form options

Source:
  • globals.js, line 658

Members

<static> actionAutoSave

Properties:
Name Type Description
actionAutoSave boolean auto-save form on custom action (default true)
Source:
  • globals.js, line 763

<static> actions

Properties:
Name Type Description
actions object Form actions { form, formPlus } arrays of actions {name, label, confirm, callback...}
undefined: generate actions with user rights, null = no action
Source:
  • globals.js, line 785

<static> activateSaveOnChange

Properties:
Name Type Description
activateSaveOnChange boolean Activate the save button is a field has changed ? (default false: save is always active)
Source:
  • globals.js, line 756

<static> areaColumns

Properties:
Name Type Description
areaColumns number columns per area without template (default 2)
Source:
  • globals.js, line 967

<static> beforeload

Properties:
Name Type Description
beforeload function(ctn,obj,params) optional handler before loading the form data
Source:
  • globals.js, line 676

<static> constraints

Properties:
Name Type Description
constraints boolean apply constraints (true by default)
Source:
  • globals.js, line 927

<static> container

Properties:
Name Type Description
container string Target UI container #work if unset)
Source:
  • globals.js, line 669

<static> copy

Properties:
Name Type Description
copy boolean true to get the item for copy
Source:
  • globals.js, line 906
Properties:
Name Type Description
createLinks boolean Allow global foreign-keys creation, default: true to set refField.createLink.enabled=true
Source:
  • globals.js, line 878

<static> display

Properties:
Name Type Description
display function(ctn,obj,params,cbk) optional to override default rendering
Source:
  • globals.js, line 700

<static> floating

Properties:
Name Type Description
floating boolean true to ensure actions visible on vertical scroll
Source:
  • globals.js, line 792

<static> floating

Properties:
Name Type Description
floating boolean true to ensure actions visible on vertical scroll
Source:
  • globals.js, line 425
Properties:
Name Type Description
followLinks boolean Allow global references navigation, default: true to set refField.followLink.enabled=true
Source:
  • globals.js, line 871

<static> formTab

Properties:
Name Type Description
formTab object current selected tab index
Source:
  • globals.js, line 885

<static> help

Properties:
Name Type Description
help string Contextual form help
Source:
  • globals.js, line 828

<static> inst

Properties:
Name Type Description
inst string optional instance name
Source:
  • globals.js, line 899

<static> isExtended

Properties:
Name Type Description
isExtended boolean Show/Hide extended fields on form (default false)
Source:
  • globals.js, line 814

<static> msg

Properties:
Name Type Description
msg (string | object)[] Optional array of (backend) messages
Source:
  • globals.js, line 821
Properties:
Name Type Description
nav string Optional navigation 'new' or 'add', to navigate on list 'first', 'prev', 'next' or 'last'
Source:
  • globals.js, line 835

<static> onclose

Properties:
Name Type Description
onclose function(ctn,obj) handler to close form, default: engine.closeForm = nav back
Source:
  • globals.js, line 749

<static> onhelp

Properties:
Name Type Description
onhelp function(ctn,obj) handler to display the long help, default engine.displayHelp
Source:
  • globals.js, line 770

<static> onload

Properties:
Name Type Description
onload function(ctn,obj,params) optional handler after loading the form
Source:
  • globals.js, line 688

<static> onsave

Properties:
Name Type Description
onsave function(ctn,obj,cbk) handler to save form, default: engine.saveForm and reload
Source:
  • globals.js, line 721

<static> onsaveclose

Properties:
Name Type Description
onsaveclose function(ctn,obj,cbk) handler to save and close form, default: engine.saveForm + closeForm
Source:
  • globals.js, line 728

<static> onsavecopy

Properties:
Name Type Description
onsavecopy function(ctn,obj,cbk) handler to save and copy, on creation by default
Source:
  • globals.js, line 742

<static> onsavenew

Properties:
Name Type Description
onsavenew function(ctn,obj,cbk) handler to save and create, on creation by default
Source:
  • globals.js, line 735

<static> onsocial

Properties:
Name Type Description
onsocial function(ctn,obj) handler to display the social posts, default engine.displaySocial
Source:
  • globals.js, line 777

<static> onunload

Properties:
Name Type Description
onunload function(ctn,obj,params) optional handler before unloading the form
Source:
  • globals.js, line 694

<static> parent

Properties:
Name Type Description
parent object optional parent context { name, inst, field, rowId } needed for creation
Source:
  • globals.js, line 920

<static> preload

Properties:
Name Type Description
preload function(ctn,obj,params) optional handler before rendering the form (data loaded)
Source:
  • globals.js, line 682

<static> readonly

Properties:
Name Type Description
readonly boolean Read only ? apply on fields, use onsave|onclose|actions|transitions to disable buttons
Source:
  • globals.js, line 807

<static> showAreas

Properties:
Name Type Description
showAreas string Display fields areas in 'tabs' or 'split' mode
Source:
  • globals.js, line 856

<static> showNav

Properties:
Name Type Description
showNav boolean Display the navigation bar (default true)
Source:
  • globals.js, line 842

<static> showOptions

Properties:
Name Type Description
showOptions boolean Display the options menu (default true)
Source:
  • globals.js, line 849

<static> showViews

Properties:
Name Type Description
showViews boolean | string Display views mode
false/true or 'tabs' / 'vertical' tabs / 'split' all panels vertically
Source:
  • globals.js, line 864

<static> template

Properties:
Name Type Description
template string Global form template with dynamic elements:
icon-title, form-title, form-actionbar, form-areas, form-navbar, area, action, field, text
Source:
  • globals.js, line 935

<static> title

Properties:
Name Type Description
title string Form title, default: function object.ui.title = user key
Source:
  • globals.js, line 707

<static> transitions

Properties:
Name Type Description
transitions object[] arrays of transition actions {name, label, confirm, callback...}
undefined: based on metadata, null = no transitions
Source:
  • globals.js, line 800

<static> values

Properties:
Name Type Description
values object value per field, default: call the get service on rowId
Source:
  • globals.js, line 714

<static> viewTab

Properties:
Name Type Description
viewTab string current selected view tab, default: metadata.defaultView if undefined
Source:
  • globals.js, line 892

<static> workflow

Properties:
Name Type Description
workflow boolean true when the form is displayed within a workflow
Source:
  • globals.js, line 913