Giter VIP home page Giter VIP logo

Comments (6)

wnabil avatar wnabil commented on August 20, 2024

Hi,
You can check this issue i explained some details for a workaround
#24
Please try it and tell me if that helps or not

from ngx-export-as.

Hojekunle avatar Hojekunle commented on August 20, 2024

Hi Wnabil
Thanks for the quick feedback. Doing like you mentioned gave me the error in a below. I tried doing like b below and it only worked on the second click. Obviously the table was yet to be loaded as at when the pdf was generated.
I think the ideal scenario in my case would be to bind the table renderer to the datasource itself and not the table id so that i wouldnt need 2 tables on a page and display both at the point the user is generating report. The end user will be confused . But then this library was probably not built for that purpose. Any ideas on any library built this way?

a. ERROR in src/app/app.component.ts(32,54): error TS2339: Property 'subscribe' does not exist on type 'void'.

b. export class AppComponent {
display: any = false;

exportAs(type: SupportedExtensions, opt?: string) {
this.display = true;
this.config.type = type;
if (opt) {
this.config.options.jsPDF.orientation = opt;
}
this.exportAsService.save(this.config, 'myFile');

from ngx-export-as.

wnabil avatar wnabil commented on August 20, 2024

Property 'subscribe' does not exist on type 'void'.
install the latest version first and retry please

from ngx-export-as.

wnabil avatar wnabil commented on August 20, 2024

@Hojekunle please confirm so we can close the issue

from ngx-export-as.

lostmagicK avatar lostmagicK commented on August 20, 2024

Use [hidden] property binding it is helpful

from ngx-export-as.

Hojekunle avatar Hojekunle commented on August 20, 2024

Well Wnabil, you can close the issue. My thought about using 2 tables and hiding one for export purposes only doesnt seem a good approach. My requirement will be to bind the table to the datasource and not the table Id (so that even when the data is paginated from the server, the tool will export all data and not just data on the first page), so that i can still control pagination, sorting on the server.
Im looking elsewhere until that is supported. Thanks again.

from ngx-export-as.

Related Issues (20)

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.