Form
The data entry form accommodates a diverse array of input fields. It constitutes a distinct component within the delegate class \Admin\Delegates\Form
. Moreover, the delegate offers supplementary aids such as tabGeneral
to facilitate the construction of pre-configured tables.
When a property or method begins with [input method]_*
, an option emerges to designate a name within the model or property name, such as input_name
. In case of a method, the initial parameter pertains to the label configuration, set as ->input_name('Name of row')
.
The following enumerates all available input options that can be integrated. The form facilitates mass methods, which are individually accessible for all inputs as well.
Vertical form mode
This setting adjusts the layout of the group title to be displayed vertically instead of horizontally.
Horizontal form mode
This setting adjusts the layout of the group title to be displayed horizontally instead of vertically.
Reversed form
This setting flips the orientation of the group title.
Set form label width
This setting determines the number of columns in the header when the group is displayed horizontally.
Input field abstraction
This abstraction class is the main class from which all inputs are inherited. All methods that this abstract class supports are the same for all other inputs.
Vertical
This setting specifies that the group with the title should be displayed vertically.
Horizontal
This setting specifies that the group with the title should be displayed horizontally.
Label width
This setting allows you to specify the number of header columns to display in horizontal mode.
Queryable
This feature enables you to retrieve the value of an input from the Request
parameters using the input name.
Value
This functionality permits you to set a predetermined value for the input field.
default
This feature enables you to establish a default value for the input field.
Default from model
This functionality allows you to set a default value for an input field from an existing model, even if the name of the model differs from the input name.
Crypt
This functionality encrypts the value of a field before storing it, providing an additional layer of security for sensitive data.
Info
This feature allows adding additional information to the input field, providing users with guidance or context about the expected input.
Value to
This feature enables processing the value of an input field with a custom function after it has been generated or retrieved. It allows for further customization or manipulation of the input value before it is displayed or used.
Nullable
This functionality makes the fields optional for input, meaning they are not required to be filled out. Additionally, it adds the corresponding rule to the validation, ensuring that if the field is left blank, it will pass validation without an error.
Disabled
This feature disables the input, preventing users from entering or modifying its value. It renders the input non-editable, essentially locking its current value.
Mask
This functionality applies a mask to the input, enforcing a specific format for user input. Masks are patterns that define how data should be formatted as it is entered into an input field. They can be used, for example, to enforce consistent formatting for phone numbers, dates, or credit card numbers.
Duplication how slug
This function constantly copies its value as a slug into the input whose ID was specified. It is designed to automatically generate a slug based on the input value and its unique identifier.
Duplication
This function continually duplicates its value into the input field with the specified ID. It's useful for automatically populating one input field with the value of another input field identified by its ID.
Slugable
This function converts the input string into a slug format. A slug is a URL-friendly version of a string, typically used in URLs to represent the title of a resource. It removes special characters, replaces spaces with hyphens, and converts all characters to lowercase.
jQuery validation methods
is_required()
is_email()
is_url()
is_date()
is_number()
is_digits()
is_equal_to(string $field)
is_max_length(int $max)
is_min_length(int $min)
is_range_length(int $min, int $max)
is_range(int $min, int $max)
is_max(int $max)
is_min(int $min)
Supports all Laravel
validation methods. The available list of validation methods can be seen in file at link.