Class JFormFieldSubform
The Field to load the form inside current form
- JFormField
- JFormFieldSubform
Copyright: Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
License: General Public License version 2 or later; see LICENSE
Since: 3.6
Example: with all attributes: <field name="field-name" type="subform" formsource="path/to/form.xml" min="1" max="3" multiple="true" buttons="add,remove,move" layout="joomla.form.field.subform.repeatable-table" groupByFieldset="false" component="com_example" client="site" label="Field Label" description="Field Description" />
Located at joomla/form/fields/subform.php
Methods summary
public
mixed
|
|
public
|
|
public
boolean
|
#
setup(
Method to attach a JForm object to the field. |
protected
string
|
|
protected
string
|
Methods inherited from JFormField
__construct()
,
getAttribute()
,
getControlGroup()
,
getFieldName()
,
getId()
,
getLabel()
,
getLayoutData()
,
getLayoutPaths()
,
getRenderer()
,
getTitle()
,
isDebugEnabled()
,
render()
,
renderField()
,
setForm()
,
setValue()
Magic methods summary
Properties summary
protected
string
|
$type |
#
The form field type. |
protected
string
|
$formsource |
#
Form source |
protected
integer
|
$min |
#
Minimum items in repeat mode |
protected
integer
|
$max |
#
Maximum items in repeat mode |
protected
string
|
$layout |
#
Layout to render the form |
protected
boolean
|
$groupByFieldset |
#
Whether group subform fields by it`s fieldset |
protected
array
|
$buttons |
#
Which buttons to show in miltiple mode |
Properties inherited from JFormField
$autocomplete
,
$autofocus
,
$class
,
$count
,
$default
,
$description
,
$disabled
,
$element
,
$fieldname
,
$form
,
$formControl
,
$generated_fieldname
,
$group
,
$hidden
,
$hint
,
$id
,
$input
,
$label
,
$labelclass
,
$multiple
,
$name
,
$onchange
,
$onclick
,
$pattern
,
$readonly
,
$renderLabelLayout
,
$renderLayout
,
$repeat
,
$required
,
$showon
,
$size
,
$spellcheck
,
$translateDescription
,
$translateHint
,
$translateLabel
,
$validate
,
$value