You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by hyonaldo <gi...@git.apache.org> on 2015/04/10 12:12:25 UTC

[GitHub] incubator-zeppelin pull request: add features to export table

Github user hyonaldo commented on the pull request:

    https://github.com/apache/incubator-zeppelin/pull/6#issuecomment-91505844
  
    @Leemoonsoo 
    
    1. It works In both Firefox and Safari. (and also IE) Do you have Flash installed and enabled? (and updated ?) The Flash is used to provide cross browser / platform ability to save files entirely on the client-side.
    Chrome ships with the Flash plug-in installed locally for itself only. It uses its own plug-in even if there is a system wide one available, although you might want to check with the Chrome folks about that. It means that they can ensure that the latest version of Flash is always used, since they have ever-green updating. I think that's why you think it works with only Chrome.
    
    2. I think it is weird. It's possible to change default name, as below
    as is:
    <code> "aButtons": [ "csv", "pdf" ]</code>
    to be:
    <code>
    "aButtons": [
                    {
                        "sExtends": "csv",
                        "sTitle": "My title",
                        "sFileName": "TableTools - *.csv"
                    }
                ]
    </code>
    This parameter defines the name of the file that is to be saved. The special character "*" will be replaced by the HTML document's "TITLE" tag if it is present. Otherwise you can use this parameter to define the file name to be used.
    
    3. It use CSS, so we can style the buttons ( .DTTT_button  ). 
    http://datatables.net/release-datatables/extensions/TableTools/css/dataTables.tableTools.css
    Or we can set the class of  a button.
    as is:
    <code> "aButtons": [ "csv", "pdf" ]</code>
    to be:
    <code> "aButtons": [ {
                        "sExtends":     "csv",
                        "sButtonClass": "my_button_class"
                    } ]
    </code>
    But, I have no idea about what looks good. Could you help me? ^^a



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---