Difference between revisions of "XML JForm form definitions/pt-br"

From Joomla! Documentation

(Created page with "Formulários Especificações")
(Created page with "Cada campo precisa conter um ou mair elementos <code><field></code>, cada um representando um único campo de formulário com um rótulo (label). V...")
Line 6: Line 6:
 
The root element for JForm definitions is usually <code><config></code>. <onlyinclude>Under the <code><config></code> element, one or more <code><fieldset></code> elements may appear, each representing a HTML <code><fieldset></code>, a group of form fields visually grouped together. The optional <code>name</code> attribute can be used on the <code><fieldset></code> to define the name of the fieldset, as in <code><fieldset name="params"></code>.
 
The root element for JForm definitions is usually <code><config></code>. <onlyinclude>Under the <code><config></code> element, one or more <code><fieldset></code> elements may appear, each representing a HTML <code><fieldset></code>, a group of form fields visually grouped together. The optional <code>name</code> attribute can be used on the <code><fieldset></code> to define the name of the fieldset, as in <code><fieldset name="params"></code>.
  
Each fieldset must contain one or more <code><field></code> elements, each representing a single [[S:MyLanguage/form field|form field]] with a label. See [[S:MyLanguage/Standard form field types|Standard form field types]] for a list of allowed form field types and example XML form field definitions.
+
Cada campo precisa conter um ou mair elementos <code><field></code>, cada um representando um único [[S:MyLanguage/form field|campo de formulário]] com um rótulo (label). Veja [[S:MyLanguage/Standard form field types|Tipos de campo de formulário padrões]] para uma lista dos tipos de campo de formulário permitidos e exemplos de definições XML para campos de formulário.
  
 
<noinclude>
 
<noinclude>

Revision as of 19:29, 27 April 2017

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎español • ‎français • ‎português do Brasil • ‎العربية • ‎বাংলা

Joomla! Joomla 2.5 and newer supply the JForm class to conveniently and flexibly create forms with a large amount of form fields. JForm can create forms from XML form definitions. These can be standalone files or sections of other files, notably manifest files.

Sintaxe

The root element for JForm definitions is usually <config>. Under the <config> element, one or more <fieldset> elements may appear, each representing a HTML <fieldset>, a group of form fields visually grouped together. The optional name attribute can be used on the <fieldset> to define the name of the fieldset, as in <fieldset name="params">.

Cada campo precisa conter um ou mair elementos <field>, cada um representando um único campo de formulário com um rótulo (label). Veja Tipos de campo de formulário padrões para uma lista dos tipos de campo de formulário permitidos e exemplos de definições XML para campos de formulário.