Laravel-Backpack / community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
28 stars 0 forks source link

[Feature Request] Corresponding column type for each field type #196

Closed tabacitu closed 2 years ago

tabacitu commented 2 years ago

Feature Request

What's the feature you think Backpack should have?

Every time you use a field type, it'd be awesome to know there's a corresponding column type... with the same name and the same definition. At first for it to be more intuitive... but later maybe even to be able to define both in one go.

Have you already implemented a prototype solution, for your own project?

No

Do you see this as a core feature or an add-on?

Core


The question is... does this even make sense? Will it not be even more confusing, to have a column type named checkbox for example... that doesn't actually show a checkbox? Or a column named select2 that doesn't actually show a select2?

Food for thought...


Let's see what the fields are, and how their corresponding columns are named (if a column for that field even exists):

FREE Field Column
checkbox šŸŸØ boolean & check (but none with the same name)
checklist šŸŸ„
checklist_dependency šŸŸ„
color šŸŸ„
custom_html ā›”ļø
date āœ…
datetime āœ…
email āœ…
enum šŸŸØ text
hidden šŸŸØ text / number
month šŸŸØ text / number
number āœ…
password šŸŸØ text?!
radio šŸŸØ text/number
range šŸŸØ text/number
select (1-n relationship) āœ…
select_grouped šŸŸØ select
select_multiple (n-n relationship) āœ…
select_from_array āœ…
summernote šŸŸØ text
text āœ…
textarea āœ…
time šŸŸØ text
upload āœ…
upload_multiple āœ…
url šŸŸØ text
view ā›”ļø
week šŸŸØ text
PRO Field Column
address_algolia šŸŸ„
address_google šŸŸ„
browse šŸŸØ text
browse_multiple šŸŸØ upload_multiple
base64_image šŸŸØ image
ckeditor šŸŸØ text
color_picker šŸŸ„
date_range šŸŸ„
date_picker šŸŸØ date
datetime_picker šŸŸØ datetime
easymde šŸŸØ markdown
icon_picker šŸŸ„
image āœ…
relationship āœ…
repeatable šŸŸ„
select2 (1-n relationship) šŸŸØ select
select2_multiple (n-n relationship) šŸŸØ select_multiple
select2_nested šŸŸØ select
select2_grouped šŸŸØ select
select_and_order šŸŸ„
select2_from_array šŸŸØ select_from_array
select2_from_ajax šŸŸØ select
select2_from_ajax_multiple šŸŸØ select_multiple
table šŸŸ„
tinymce šŸŸØ text
video šŸŸ„
wysiwyg šŸŸ„ text
tabacitu commented 2 years ago

Update: @munjaldevelopment has started working on this in:

tabacitu commented 2 years ago

Let's close this issue, we'll continue the conversation in those two PRs and the PR to demo - https://github.com/Laravel-Backpack/demo/pull/430