Giter Site home page Giter Site logo

2amigos / yii2-exportable-widget Goto Github PK

View Code? Open in Web Editor NEW
20.0 21.0 14.0 212 KB

Allows the exportation of a GridView widget to different formats

Home Page: https://2amigos.us

License: Other

PHP 95.80% JavaScript 4.20%
2amigos gridview export widget button yii

yii2-exportable-widget's Introduction

Exportable Widget for Yii2

Latest Stable Version Software License Total Downloads Build Status Quality Score

More than a simple widget, is a library. With this library you would be able to provide exporting capabilities to your Yii2 application whether you use our GridView Library (which is highly recommended) or your own.

If you are using our GridView Library, you will take the advantage of a predefined set of exporting formats that, in conjunction with the ToolbarBehavior, you could export with a mere couple of configuration settings on your grid. The predefined exporting formats are:

  • json
  • csv
  • xlsx
  • html
  • text
  • xml
  • ods

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require "2amigos/yii2-exportable-widget" "*"

or add

"2amigos/yii2-exportable-widget" : "^2.0"

to the require section of your application's composer.json file.

Documentation

You can read the latest docs on http://yii2-exportable-widget.readthedocs.io/en/latest/

Contributing

Please see CONTRIBUTING for details.

Credits

License

The BSD License (BSD). Please see License File for more information.


Custom Software | Web & Mobile Software Development
www.2amigos.us

yii2-exportable-widget's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yii2-exportable-widget's Issues

Export Menu is not clicking

Hello guys, the problem i am facing is that the menu is not clicking, the dropdown is there but when i click on one of the items from the dropdown list of export no action is happening,
here is how i configured the widget:
1:-My controller file

use dosamigos\tableexport\TableExportAction;

public function actions()
    {
    return [
        'download' => [
            'class' => TableExportAction::className()
        ]  
    ];
    }

2:-My view file

use dosamigos\tableexport\ButtonTableExport;

<?= ButtonTableExport::widget(
                [
                    'label' => 'Export Table',
                      'selector' => '#table1 > table', // any jQuery selector
                      'exportClientOptions' => [
                      'ignoredColumns' => [0, 7],
                       'useDataUri' => false,
                        'url' => \yii\helpers\Url::to('controller/download')
                            ]
                      ]
                          );?>

can anyone tell me what is going wrong?

Table that is paginated

this plugin only export the first page it doesnt get the how table. how can you fix that. if

Button doesnt not apper

Hello I've used

<?= ButtonTableExport::widget(
                        [
                            'label' => 'Export Table',
                            'selector' => '#example', // any jQuery selector
                            'exportClientOptions' => [
                                'useDataUri' => true,
                                'url' => \yii\helpers\Url::to('user/download')
                            ]
                        ]
                    );?>

and button does not appear at all. (It doesnt echo the button )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.