Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto new_AddAdditionalInputTypeExample
  • Loading branch information
jasonchuah4 committed Jul 7, 2023
2 parents c796504 + 0115dc3 commit de818b0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<link rel="stylesheet" href="lib/codemirror/codemirror.css">
<link rel="stylesheet" href="lib/bootstrap-select/css/bootstrap-select.min.css">
<link rel="stylesheet" href="lib/octicons/octicons.css">
<link rel="stylesheet" href='//rawgit.com/brutusin/json-forms/master/dist/css/brutusin-json-forms.min.css'/>
<link rel="stylesheet" href='src/css/brutusin-json-forms.css'/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">

<style>
img {
Expand All @@ -27,8 +28,8 @@
<!--
<script src="//rawgit.com/brutusin/json-forms/master/dist/js/brutusin-json-forms.min.js"></script>
-->
<script src="//rawgit.com/brutusin/json-forms/master/src/js/brutusin-json-forms.js"></script>
<script src="//rawgit.com/brutusin/json-forms/master/dist/js/brutusin-json-forms-bootstrap.min.js"></script>
<script src="src/js/brutusin-json-forms.js"></script>
<script src="src/js/brutusin-json-forms-bootstrap.js"></script>
<script lang="javascript">
var BrutusinForms = brutusin["json-forms"];
BrutusinForms.bootstrap.addFormatDecorator("inputstream", "file", "glyphicon-search", function (element) {
Expand Down Expand Up @@ -113,6 +114,11 @@
null,
null,
"Required properties supported in both v3 and v4+ spec formats. Last one format takes preference. More info [here](https://github.com/brutusin/json-forms/issues/56)"],
["Radio button",
{"$schema": "http://json-schema.org/draft-03/schema#", "type": "object", "properties": {"radio1": {"type": "boolean","format": "radio","title": "Animal", "required": true, "enum": ["Dog", "Cat", "Bird"]}}},
null,
null,
"Boolean supporting radio type. Must define `format` and `enum` fields."],
["Additional input type format",
{"$schema":"http://json-schema.org/draft-03/schema#","type":"object","properties":{"password":{"title":"Password","type":"string","format":"password","description":"Password field would have the text masked.","required":true},"email":{"title":"Email","type":"string","format":"email","description":"Email field would need to follow the format of [email protected] in order to pass the validation.","required":true},"date":{"title":"Date","type":"string","format":"date","description":"Use the date picker to pick the date.","required":true},"time":{"title":"Time","type":"string","format":"time","description":"Use the time picker to pick the time.","required":true}}},
null,
Expand Down Expand Up @@ -305,6 +311,5 @@ <h4 class="panel-title">
);

</script>
</div>
</body>
</body>
</html>

0 comments on commit de818b0

Please sign in to comment.