formio-sfds
Version:
The Form.io theme for sf.gov
29 lines (26 loc) • 1.42 kB
HTML
<html lang="en">
<head>
<title>Select with translations | formio-sfds examples</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="/sfgov/forms.css">
</head>
<body>
<div class="formio-sfds">
<div class="container p-2">
<h1 class="h3 mb-4">
<a href="/">formio-sfds@10.0.0</a> /
Select with translations
</h1>
<sfgov-form
data-form="{"components":[{"type":"select","widget":"html5","key":"choices","label":"Which direction?","data":{"values":[{"label":"Up","value":"up"},{"label":"Down","value":"down"}]}}]}"
data-options="{"language":"es","i18n":{"es":{"choices.label":"¿Qué dirección?","choices.values.up":"Arriba","choices.values.down":"Abajo"}}}">
</sfgov-form>
</div>
</div>
<script src="https://unpkg.com/formiojs@4.14.8/dist/formio.full.min.js"></script>
<script src="/dist/formio-sfds.standalone.js"></script>
<script src="/dist/examples.js"></script>
</body>
</html>