Comments (2)
Can try this
Text::make('Text')
->withMeta(['value' => 'Default Value']),
from nova-simple-repeatable.
Hi!
If you want to set default values then you can use default value callback but as far as I'm aware of this will set default value when creating new resource. This method won't work for update view.
Currently there is no way to add default values for simple repeatable itself and I think we are not planning to add one.
from nova-simple-repeatable.
Related Issues (20)
- Array to String Conversion HOT 2
- DependsOn does not work in Nova 4.17.1 HOT 1
- Date fields are not working HOT 1
- set column used to sort repeatable block
- Psalm InvalidArgument error HOT 1
- jsonSerialize incompatible HOT 1
- * Missing on required fileds HOT 2
- Translations bug HOT 1
- Multiple SimpleRepeatable on same page validation issue HOT 2
- Prepopulate using withMeta or equivalent HOT 2
- Make it available for actions fields
- hideWhenUpdating does not work properly HOT 1
- [2.2.0] Deleting a row leaves rows with a different row index than what is being submitted HOT 4
- TypeError: Cannot read properties of undefined (reading 'find') HOT 2
- image show wrong HOT 1
- [Help wanted] [Possible-bug] How to work with nova-translatable HOT 1
- [Help Wanted]: Repeatable Row display default
- Redraw component from dependsOn function
- Validation rules when using fillUsing do not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nova-simple-repeatable.