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

ngx-mat-table-switching

v1.0.2

Published

This library is used for more convenient interaction with Angular Material tables. There are cases when it is necessary to interact with the table using the keyboard, switch between rows or cells, change data using the keyboard. This library is quite easy

Downloads

15

Readme

Description / Installation

This library is used for more convenient interaction with Angular Material tables. There are cases when it is necessary to interact with the table using the keyboard, switch between rows or cells, change data using the keyboard. This library is quite easy to use and easy to configure.

To install - npm i ngx-mat-table-switching

Below is a description of the functionality, however if you need to see the use of the finished project, you can refer to the repository - https://github.com/DaniilRalf/ngx-mat-table-switching

Beginning of work

  • Must have a functioning Angular project `ng new <project_name>
  • Install Angular Material ng add @angular/material
  • At this stage, we can create a basic table template, you can see an example of creating a table either on the official Angular Material website - https://material.angular.io/components/table/examples, or in the repository - https:/ /github.com/DaniilRalf/ngx-mat-table-switching
  • gdfgdfgsdfgsdfg^\
import {NgxMatTableSwitchingModule} from "ngx-mat-table-switching";

@NgModule({
declarations: [...],
imports: [
            ...,
            NgxMatTableSwitchingModule
         ],
providers: [...],
bootstrap: [...]
})
export class AppModule { }

Using the functionality

tag - mat-table

| Attribute name | Attribute type | Status | Type data | Description | |----------------------|----------------|----------|---------------|----------------------------------------------------------------------| | ngxMatTableSwitching | Input | Required | - | | | [setType] | Input | Required | 'row''table' | Specify the type of the element on which we initialize the directive | | [setTagActive] | Input | Required | boolean | If this attribute is true, table navigation mode is active |

tag - mat-row

| Attribute name | Attribute type | Status | Type data | Description | |----------------------|----------------|------------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ngxMatTableSwitching | Input | Required | - | | | [setType] | Input | Required | 'row''table' | Specify the type of the element on which we initialize the directive | | [setIndexRow] | Input | Required | number | Passing an index for each row | | [setRow] | Input | Required | | Passing data for each row | | [setAvailableCell] | Input | Required | string[] | We pass in an array of strings, values that correspond to the names of the columns we want to navigate through. If we want to move through all the columns, we pass in the array all the names of the columns in the order in which they are in the table | | (onActiveData) | Output | Required | any | УWhen the "Enter" key is pressed, a data set is transferred to the component - cell knowledge, cell element, line escaping |

In the component in which the library is initialized, namely in the style file, it is necessary to define 2 classes:
Styling the active row
.active-class__switching-row { ... }
Styling the active cell
.active-class__switching-cell { ... }

Additionally

  • Works only on "mat-table" tables
  • Angular not lower than version 11
  • For more information - [email protected]