Giter VIP home page Giter VIP logo

Comments (5)

guillaumeduval64 avatar guillaumeduval64 commented on June 19, 2024

Would it also accept default value?

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024

Would it also accept default value?

Hi @guillaumeduval64,

There is no native method in Nova for setting a default value for a field. This is the case for all field types, including File and Image.

Have a look here: laravel/nova-issues#58 (comment)
This should help you.

Have a good one!
Clément

from nova-advanced-image-field.

guillaumeduval64 avatar guillaumeduval64 commented on June 19, 2024

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024

Allo Clément :) Merci du retour super rapide! Oui justement j'avais vu mais check ça aussi sur la doc... https://nova.laravel.com/docs/3.0/resources/fields.html#default-values C'est sur la V3 par contre...

Ah, merci pour le tuyau, je découvre pour être honnête...
Par contre, après plusieurs tests, je n'ai pas l'impression que ce soit vraiment fait pour des champs de type "fichier".

Comment verrais-tu cette fonctionnalité fonctionner ?

Bonne soirée

from nova-advanced-image-field.

ctessier avatar ctessier commented on June 19, 2024

Hello @guillaumeduval64,

Après plusieurs test, je te confirme que cette fonctionnalité ne peut pas fonctionner avant le champ file (regarde https://stackoverflow.com/a/16367121).

Pour information, j'ai publié samedi une nouvelle version (v1.2.0) qui améliore grandement l'héritage avec les champs natifs File et Image.

N'hésites pas à y jeter un œil et me faire des retours si tu utilises toujours le package ;)

Bonne journée,
Clément

from nova-advanced-image-field.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.