Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: [@adminjs/relations] Add custom properties/columns. #1653

Open
ZeroCho opened this issue Apr 8, 2024 · 0 comments
Open

[Feature]: [@adminjs/relations] Add custom properties/columns. #1653

ZeroCho opened this issue Apr 8, 2024 · 0 comments

Comments

@ZeroCho
Copy link

ZeroCho commented Apr 8, 2024

Description

I think one of good features for adminjs is to customize columns with custom components.
If @adminjs/relations also has a feature to customize columns, it will be better.

Suggested Solution

Like how we add custom properties for adminjs, I think @adminjs/relations should support properties column.
Please correct me if it already exists. As far as I know from searching from @adminjs/relations/types/index.d.ts, properties option does not exist.

properties: {
  params: {
    type: 'mixed',
    isRequired: false,
    components: {
      show: Components.ShowJSONB,
      edit: Components.EditJSONB,
      list: Components.ShowJSONB,
    },
  },
}

Alternatives

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant