html-ui.description-fields
As of snapshot UPgVfUfp48. See the latest
- description
- Inputs for the descriptions in English, Japanese and Esperanto named <prefix>.en and so on (for html-ui.tool-form; an emptied input removes that language)
- type
Fn(language: String, prefix: String, texts: List<@core.localized-text>) -> List<@html.node>
- expression
fn(language$990, prefix$0, texts$1) => @core.list-map( T: Record{code: String, label: String}, U: @html.node, f: fn(item$2) => @html-ui.labeled( label: $2.label, control: @html.element( name: "input", attributes: [ {name: "name", value: @core.string-join(items: [$0, ".", $2.code], separator: "")}, {name: "data-keep-empty", value: ""}, {name: "value", value: @html-ui.localized-text-in(texts: $1, language: $2.code, fallback: false)} ], children: [] ) ), xs: [ { code: "en", label: @html-ui.text(language: $990, en: "Description (English)", ja: "説明 (英語)", eo: "Priskribo (angla)") }, { code: "ja", label: @html-ui.text(language: $990, en: "Description (Japanese)", ja: "説明 (日本語)", eo: "Priskribo (japana)") }, { code: "eo", label: @html-ui.text( language: $990, en: "Description (Esperanto)", ja: "説明 (エスペラント)", eo: "Priskribo (Esperanta)" ) } ] )
- visibility
- public
html-ui.description-fields (project html-ui, branch main, snapshot UPgVfUfp48oOYhAXmpLTGVrvRcl4DyKOa4PyXm_76qo) id: HmOxFgSBzWOKvmDlz-2lW3_7t-7Rnzf-g8eaotmd4WU content hash: -ToLazsYBsM8XeIEHBZrsJBEV2UQmqQsoSapAdhTCV0