Comments (7)
Sorry I don't understand what you mean, can you give an example?
from nova-mega-filter.
In resource field, commonly I wrote:
BelongsTo::make('My Merchant', 'merchant', \App\Nova\Merchant::class),
My $title = 'display_name';
in Merchant resource class let it display as a semantic meaningful "display_name", not "ID", if I use Column::make('Merchant ID', 'merchant_id')->checked()
, it only allow me to use the actual value in the table, not the related "display_name".
from nova-mega-filter.
This doesn't work?
Column::make('My Merchant', 'merchant')->checked()
from nova-mega-filter.
This doesn't work?
Column::make('My Merchant', 'merchant')->checked()
No, merchant
is the field of the table, but merchant display name(field name called merchant_display_name
), which I want to use, is not in the table, it's in the relation table that belongsTo()
can work, because I can specify it in the $title
of that resource.
from nova-mega-filter.
Im not really getting what you are saying... if you can post your full nova resource file.. would be easier for me to understand what you mean
from nova-mega-filter.
I find a document may explain my need: https://nova.laravel.com/docs/2.0/resources/relationships.html#belongsto
from nova-mega-filter.
I know how that belongs to works, what im not understanding is why this example is not working for you:
Column::make('My Merchant', 'merchant')->checked()
Because I use this on my projects and it works fine with relationships, the name of the column shown the column selection is exactly what the name you give to the first argument My Merchant
from nova-mega-filter.
Related Issues (20)
- How to set custom filtersWidth for each filter? HOT 2
- Computed fields allways appears whether checkbox is checked or is not HOT 17
- Checking/Unchecking columns without effect HOT 2
- All fields is hidden if I add MegaFilter to cards HOT 5
- This package and conditional-container in the same class HOT 1
- How to colorize the mega filter column field? HOT 1
- Bug when first load resource HOT 4
- class
- Checkboxes of columns are "remembered" when I navigate back to list, but wrong columns are shown HOT 1
- How to make the columns, filters and actions sections collapsed by default ? HOT 1
- Error when moving between resources HOT 1
- Bug: column filtering not working anymore on HasMany relational table HOT 6
- What filter do use for display such badges like on ur screenshots? HOT 1
- How I can add computed column to Mega columns? HOT 1
- Save columns in session HOT 1
- Trying to access array offset on value of type null HOT 1
- Filter not working in user resource HOT 1
- Undefined array key: 'symbol' HOT 1
- Please add support for Nova 4 HOT 1
- Nova 4 Support HOT 3
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-mega-filter.