data-form(翻訳作業中)

Ver 1.04
UPDATE 1.04: 2018/9/16
UPDATE 1.03: 2018/9/06
UPDATE 1.02: 2018/9/05
UPDATE 1.01: 2018/8/25


STANDALONE BUTTONS

※DON'T CLICK THESE BUTTONS WHEN "THE EDIT PAGE FORM" IS DISPLAYED.

Edit Page Source
History Files



black.png

Properties that apply to all field types

全てのフィールド型に適用されるプロパティ

The 'label' property

If you specify a 'label' property then the field gets that text in the left column, or before the field for joined fields. If you do not specify a label then the field has an empty space in the left column, or is squashed up after the previous field, for joined fields. For example:
"label"プロパティを指定した場合、フィールドは左の行列に、もしくは結合したフィールドがあるならばそのフィールドの前にそのテキストを取得します。ラベルを指定しない場合、フィールドは左の行列に空きスペースが生じ、結合したフィールドの場合は以前からあるフィールドの後ろに押しつぶされます。例えば、

[[form]]
fields:
  address-line-1:
    label: Address
    width: 30
  address-line-2:
    width: 30
  address-line-3:
    width: 30
[[/form]]

The 'join' property

If you specify 'join: true' then the field is placed after the previous field, if any. This property has no effect if the field is the first in the form. For example:

[[form]]
fields:
  city:
    label: City
    width: 20
  postcode:
    label: Postcode
    width: 8
    join: true
[[/form]]

The 'before' property

Provides a string of plain text that displays before the field value

[[form]]
fields:
  phone:
    label: Phone
    width: 10
    before: +(1)
[[/form]]

The 'after' property

Provides a string of plain text that displays after the field value

[[form]]
fields:
  speed:
    label: Car speed
    width: 4
    after: kph
[[/form]]

Properties for specific field types

There are additional properties that only apply to specific field types. These are documented below with the field type(s) they apply to.

特に指定がない限り、このサイトのコンテンツには次のライセンスが適用されます: Creative Commons Attribution-ShareAlike 3.0 License