Git Product home page Git Product logo

Comments (7)

skoyah avatar skoyah commented on September 4, 2024

Hi @tushar-kharmate thanks for the feedback!

Could you elaborate a little bit more on the issue?

Are you trying to use this package for a relationship?

from nova-inline-text.

tushar-kharmate avatar tushar-kharmate commented on September 4, 2024

Hey @skoyah, Yes I'm trying to use it for BelongsToMany relationship.

I have two resources.

  1. ProductGroup
  2. Nutrients.

Pivot table for the above two resources - 'product_group_nutrients' with the following columns. ('id', 'product_group_id', 'nutrient_id', 'value').

I have implemented BelongsToMany relationship on both the side.
In this, I'm trying to do Inline edit for extra field 'value' from the pivot table. By using InlineText from your package.

Here is my code snippet,
ProductGroup.php

BelongsToMany::make('Nutrients') ->fields(function () { return [ InlineText::make('Value (In Percentage)','value')->inlineOnIndex(), ]; }),

Nutrient.php

BelongsToMany::make('Product Groups','productGroups') ->fields(function () { return [ InlineText::make('Value','value')->inlineOnIndex(), ]; }),

You can see the screenshot in earlier post.

Thanks!

from nova-inline-text.

skoyah avatar skoyah commented on September 4, 2024

Thanks for the explanation @tushar-kharmate !

It makes sense your use case. I'll try to tackle this issue when I have some spare time. Fell free to PR's are also welcomed! :)

from nova-inline-text.

tushar-kharmate avatar tushar-kharmate commented on September 4, 2024

Thanks, @skoyah,
Yes I'll be happy to contribute. I'm new to Laravel Nova and learning its structure.

from nova-inline-text.

villeneuve-michael avatar villeneuve-michael commented on September 4, 2024

Hello,

I was just wondering if there is any status update on that enhancement? Maybe I could chip in? Let me know if I can help with this PR.

from nova-inline-text.

skoyah avatar skoyah commented on September 4, 2024

Hi@villeneuve-michael ! I have been really busy lately with a lot of work to do! Would be nice if you could contribute to the package!

from nova-inline-text.

villeneuve-michael avatar villeneuve-michael commented on September 4, 2024

Ok! I'll try to give it a shot. I'll try to make some time in the next week !

from nova-inline-text.

Related Issues (11)

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.