Difference between revisions of "Command/definefield"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
m (remove manual syntax)
(12 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
<table cellspacing="4" cellpadding="2" class="cmd">
+
<syntax>definefield</syntax>
  <tr>
 
    <td colspan="2" class="cmd">\definefield<span class="first" >[...]</span><span class="second" >[...]</span><span class="third" >[...]</span><span class="first" >[...,...,...]</span><span class="second" style="color:red;">[...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="third">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...,...,...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
</table>
 
  
  
== Description ==  
+
== Description ==
 +
Define an interactive field (widget)
 +
 
 
# reference name
 
# reference name
 
# type of widget (e.g. line)
 
# type of widget (e.g. line)
# name of setup (defined with \setupfield)
+
# name of setup (defined with {{cmd|setupfield}})
# ???
+
# content values (for radio buttons or checkboxes)
 
# initial content of field
 
# initial content of field
  
Line 42: Line 20:
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
 
 +
<texcode>
 +
\setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]
 +
\definefield[Name][line][shortString][][Hans]
 +
\field[Name]
 +
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setupfield}}
 +
* {{cmd|definesubfield}}
 +
* {{cmd|field}}
 +
* [http://www.pragma-ade.com/general/manuals/mwidget-s.pdf Widgets Manual]
 +
* [[Widgets]]
 +
* Module fields {{src|m-fields.mkiv}}
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|definefield]]
+
[[Category:Command/Fields|definefield]]

Revision as of 10:04, 20 February 2022

\definefield

Syntax (autogenerated)

\definefield[...][...][...][...,...][...]
[...]name
[...]radio sub text line push check signature
[...]name
[...,...]name
[...]name



Description

Define an interactive field (widget)

  1. reference name
  2. type of widget (e.g. line)
  3. name of setup (defined with \setupfield)
  4. content values (for radio buttons or checkboxes)
  5. initial content of field


Example

\setupfield[shortString][reset,horizontal][width=45mm,option=printable,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]
\definefield[Name][line][shortString][][Hans]
\field[Name]

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: