npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@groupdocs/groupdocs.editor.angular.ui-spreadsheet

v0.0.6

Published

Angular Spreadsheet document editor's core component of the GroupDocs.Editor.UI library.

Downloads

8

Readme

GroupDocs.Editor.UI Angular Spreadsheet Document Editor

The GroupDocs.Editor.UI Angular Spreadsheet Document Editor is a powerful front-end component of the GroupDocs.Editor.UI library, tailored specifically for Angular applications. This component empowers developers to seamlessly integrate a comprehensive document editing solution into their web applications, allowing users to open, view, edit, and save Spreadsheet documents in various formats, including XLS, XLSX, XLSX and more, all within the convenience of their web browser. In this article, we'll walk you through the process of getting started with this essential tool.

Getting Started

Installation

To use the editor in your Angular projects, first install the groupdocs.editor.angular.ui-core and groupdocs.editor.angular.ui-spreadsheet packages with the npm or yarn package managers: Using npm:

npm i @groupdocs/groupdocs.editor.angular.ui-core
npm i @groupdocs/groupdocs.editor.angular.ui-email

Or, with yarn:

yarn add @groupdocs/groupdocs.editor.angular.ui-core
yarn add @groupdocs/groupdocs.editor.angular.ui-email

Integrating into Your Angular Application

Once the package is installed, you need to integrate it into your Angular application. Here are the necessary steps:

1. Modify the tailwind.config.js file

In your Angular project, add the following content paths to your tailwind.config.js file:

content: [
    "./src/**/*.{html,ts}",
    "node_modules/@groupdocs/groupdocs.editor.angular.ui-core/**/**/*.mjs",
    "node_modules/@groupdocs/groupdocs.editor.angular.ui-spreadsheet/**/**/*.mjs",
]

This step is crucial to ensure that the Spreadsheet Document Editor operates correctly.

2. Add SpreadsheetEditorModule to AppModule

In your Angular AppModule, make sure to import and add the SpreadsheetEditorModule as follows:

SpreadsheetEditorModule.forRoot({rootUrl: environment.apiUrl})

This configuration connects the Spreadsheet Document Editor to your application and provides the necessary settings.

3. Configure the Router

Include a route in your Angular router to navigate to the Spreadsheet. This step is crucial for enabling document editing.

{
    path: 'spreadsheet/:folderName/:page/:pages', component
:
    SpreadsheetComponent
}

Using the Spreadsheet Document Editor

Now that you've configured the component, you can start using it to edit Word documents. Here's a brief example of how to upload a file and navigate to the SpreadsheetComponent:

upload()
{
    if (this.file) {
        const observer = {
            next: (data: SpreadsheetStorageInfo) => {
                if (data) {
                    this.documentCode = data.documentCode;
                    this.showLoading = false;
                    this.allowAccept = true;
                }
            },
            error: (error: any) => {
                console.error(error)
            },
        };
        this.spreadsheetHttpService.uploadPost$Json({
            body: {
                File: this.file,
                "LoadOptions.Password": ''
            }
        }).subscribe(observer);
    } else {
        alert("Please select a file first");
    }
}
goToLink()
:
void {
    let url = `spreadsheet/${this.documentCode}/${this.currentPage}/${this.totalPages}`;
    window.open(url, '_blank');
}

The code above demonstrates how to upload a file and handle the document editing process within your Angular application. Note: The input parameters correspond to SpreadsheetLoadOptions and SpreadsheetEditOptions.

Note

This component is designed to work seamlessly with various GroupDocs examples and solutions, including the GroupDocs Editor for .NET Spa with GroupDocs document editor.

Resources

To learn more about GroupDocs and access additional resources, please visit the following links: