Appearance
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
sh
title string text
email
sh
email string,50 email
number
sh
amount double number
date
sh
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
sh
<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
sh
profile string file
password
sh
user_password string password
select
sh
status integer select:Draft:1,Published:2,Archived:3
status string select:Draft,Published,Archived
radio
sh
status integer radio:Draft:1,Published:2
gender string radio:Male,Female
checkbox
sh
is_featured boolean checkbox
is_active string checkbox:active
textarea
sh
article_body text textarea