Skip to content

Commit

Permalink
Rename input field to default
Browse files Browse the repository at this point in the history
  • Loading branch information
aerni committed Nov 30, 2023
1 parent bc30e86 commit 21a7529
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,11 @@ There are a couple of configuration options for your form fields:

| Parameter | Type | Supported by | Description |
| :-------------- | :-------------------------------------- | :----------------------------- | :------------------------------------------------------------------------------------------------------------------------------------- |
| `autocomplete` | `string` | `input`, `textarea`, `select` | Set the field's [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute. Defaults to `on`. |
| `autocomplete` | `string` | `default`, `textarea`, `select` | Set the field's [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute. Defaults to `on`. |
| `cast_booleans` | `boolean` | `radio`, `select` | String values of `true` and `false` will be saved as booleans. |
| `default` | `array`, `boolean`, `integer`, `string` | All fieldtypes except `assets` | Set the field's default value |
| `inline` | `boolean` | `checkboxes`, `radio` | Set to `true` to display the fields inline |
| `placeholder` | `string` | `input`, `textarea` | Set the field's placeholder value |
| `placeholder` | `string` | `default`, `textarea` | Set the field's placeholder value |
| `show_label` | `boolean` | All fieldtypes | Set to `false` to hide the field's label and instructions. |
| `width` | `integer` | All fieldtypes | Set the desired width of the field. |
| `wire_model` | `string` | All fieldtypes | Customize `wire:model`, e.g. `wire_model: live.debounce.150ms`. |
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Hidden.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

class Hidden extends Field
{
protected static string $view = 'input';
protected static string $view = 'default';
}
2 changes: 1 addition & 1 deletion src/Fields/Integer.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Integer extends Field
use WithInputType;
use WithPlaceholder;

protected static string $view = 'input';
protected static string $view = 'default';

protected function inputTypeProperty(): string
{
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Text extends Field
use WithInputType;
use WithPlaceholder;

protected static string $view = 'input';
protected static string $view = 'default';

protected function hiddenProperty(): bool
{
Expand Down

0 comments on commit 21a7529

Please sign in to comment.