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

DetailView widget export suggestion #339

Open
RodrigoDornelles opened this issue Nov 17, 2020 · 8 comments
Open

DetailView widget export suggestion #339

RodrigoDornelles opened this issue Nov 17, 2020 · 8 comments

Comments

@RodrigoDornelles
Copy link

RodrigoDornelles commented Nov 17, 2020

in addition to exporting in the gridview format, I think the variant for only one model is a good implementation (detail wiget)

use kartik\export\DetailExportMenu;
$gridColumns = [
    'id',
    'name',
    'color',
    'publish_date',
    'status',
];

echo DetailView::widget([
    'columns' => $gridColumns,
    'model' => $model
]);

echo DetailExportMenu::widget([
    'columns' => $gridColumns,
    'model' => $model
]);

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@stale
Copy link

stale bot commented Jan 23, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 23, 2021
@RodrigoDornelles
Copy link
Author

up.

@stale stale bot removed the wontfix label Jan 23, 2021
@ThreepE0
Copy link

ThreepE0 commented Jan 24, 2021 via email

@RodrigoDornelles
Copy link
Author

Use case doesn’t make any sense to me here. It seems like you’d have a single row, which could easily be done by filtering the grid, or trivially in a one-liner (not using yii2-export) to dump model properties and offer a csv to the browser in a model view page. Could you please explain in more detail?

Instead of a table it would be a single record sheet, just like DetailView widget shows the field on the left and the answer on the right.

It would be useful for reporting narrative, reviewing records, researchers, and other types of documents that are organized in this format.

example

@ThreepE0
Copy link

ThreepE0 commented Jan 24, 2021 via email

@RodrigoDornelles
Copy link
Author

It wouldn't be a necessity of mine, just a suggestion that I thought was a good case.

@ThreepE0
Copy link

ThreepE0 commented Jan 24, 2021 via email

@gteruel
Copy link

gteruel commented Jan 17, 2022

I'm interesred on it but couldn't find the "kartik\export\DetailExportMenu" class anywhere. Any suggestion for its refuge? In addition, some help on how to configure the kartik Export Menu "exportFormView" setting might clarify even more this topic.
Thanks in advance.

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

No branches or pull requests

4 participants