You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,10 @@ All notable changes to `nova-inline-select` will be documented in this file
41
41
- Github Actions now doing the heavy lifting for tests. Thanks [@luisdalmolin](https://github.com/luisdalmolin)[#19](https://github.com/kirschbaum-development/nova-inline-select/issues/19).
42
42
- Added pretty printing results for PHPUnit tests
43
43
44
-
## 2.0.0 - 2022-5-22
44
+
## 2.0.0 - 2022-4-22
45
45
46
46
- Upgraded and ready for Nova 4!
47
+
48
+
## 2.0.1 - 2022-5-23
49
+
50
+
- Added `enableOneStepOn...()` methods to eventually replace `disableTwoStepOn...()` methods.
Now the above inline select field will show up on both the index and detail views. When making a change to the select field, a button will display next to the field allowing you to commit the change. If you would prefer the field to auto-submit the change, just add `disableTwoStepOnIndex()` or `disableTwoStepOnDetail()`.
69
+
The above inline select field will show up on both the index and detail views. When making a change to the select field, a button will display next to the field allowing you to commit the change. If you would rather the field auto-submits the change, simply add `enableOneStepOnIndex()` or `enableOneStepOnDetail()`.
70
70
71
71
```php
72
72
InlineSelect::make('Status')->options($options)
73
73
->inlineOnIndex()
74
-
->disableTwoStepOnIndex(),
74
+
->enableOneStepOnIndex(),
75
75
```
76
76
77
-
Now changing the select field on the index view will auto-submit the changed value.
77
+
The inline select field on the index view now will auto-submit the changed value. You can also continue to use the old `disableTwoStepOnIndex()` method if you choose, which just calls `enableOneStepOnIndex()` under the hood.
78
78
79
-
You can also add the inline select to Lenses. Use the `inlineOnLens()` method. Auto-submitting works the same as well with `disableTwoStepOnLens()`.
79
+
You can also add the inline select to Lenses. Use the `inlineOnLens()` method. Auto-submitting works the same as well with `enableOneStepOnLens()`.
0 commit comments