Comments (7)
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.
Hey @skoyah, Yes I'm trying to use it for BelongsToMany relationship.
I have two resources.
- ProductGroup
- 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.
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.
Thanks, @skoyah,
Yes I'll be happy to contribute. I'm new to Laravel Nova and learning its structure.
from nova-inline-text.
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.
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.
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)
- Save on blur HOT 1
- error message of validation HOT 2
- Inline update on index deletes values from Currency field when not read only HOT 1
- Add support for Nova v4.6 HOT 2
- Make this available for Nova 4 HOT 1
- Error 422 HOT 2
- Allow users to to disable input
- Update field triggers 422 validation error HOT 6
- Add validation caveat to the docs HOT 1
- Composer 2 Deprecation Notice: Class does not comply with psr-4 autoloading standard. HOT 2
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-inline-text.