Fields Input Guide
While passing htmlType
in a field, we have different syntax for different fields. Here is the full guide for each supported field. Check the last word in each of below example.
text
title string text
email string,50 email
number
amount double number
date
published_at date date
In order to get Datepicker work, you need to include the css and js file of datepicker into you app.blade.php
<head>
...
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/css/bootstrap-datepicker.min.css"
integrity="sha512-mSYUmp1HYZDFaVKK//63EcZq4iFWFjxSL+Z3T/aCt4IO9Cejm03q3NKKYN6pFQzY0SBOr8h+eCIAZHPXcpZaNw=="
crossorigin="anonymous"
referrerpolicy="no-referrer" />
...
</head>
<body>
...
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"
integrity="sha512-T/tUfKSV1bihCnd+MxKD0Hm1uBBroVYBOYSk1knyvQ9VyZJpc/ALb4P0r6ubwVPSGB2GvjeoMAJJImBG12TiaQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer">
</script>
...
<body>
file
profile string file
password
user_password string password
select
status integer select:Draft:1,Published:2,Archived:3
status string select:Draft,Published,Archived
radio
status integer radio:Draft:1,Published:2
gender string radio:Male,Female
checkbox
is_featured boolean checkbox
is_active string checkbox:active
textarea
article_body text textarea