
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
ngx-category-scroll
Advanced tools
An Angular component for smooth scrollable category navigation with section sync.
NgxCategoryScroll
is a reusable Angular component that displays a list of categories with items. It supports synchronized scrolling and selection between a horizontal category list and a vertical item list. When you scroll the item list, the corresponding category is automatically highlighted. You can also click on a category to scroll to its section smoothly.
@Input()
Make sure your Angular module includes:
import { NgxCategoryScroll } from './path-to-component/ngx-category-scoll.component';
@NgModule({
declarations: [NgxCategoryScroll],
imports: [CommonModule],
exports: [NgxCategoryScroll]
})
export class YourModule {}
<ngx-category-scroll [data]="categories" [listContainerCss]="'custom-scroll-style'"></ngx-category-scroll>
[
{
id: number;
name: string;
items: {
id: number;
name: string;
}[];
}
]
data (any[]) Required. An array of category objects. Each category should have an id, name, and an items array containing objects with id and name.
listContainerCss (string) Optional. Allows you to apply a custom CSS class to the scrollable item list container (the bottom section).
categoryContainerCss (string) Optional. Allows you to apply a custom CSS class to the category bar container (the top horizontal section).
template: TemplateRef Type: TemplateRef Optional: Yes Description: Allows you to apply a custom layout for each item rendered in the component.
When provided, this template will be used to render each item in the list. The component will inject the current item context (let-item) into the template using Angular's *ngTemplateOutlet.
selectedCategory (EventEmitter) Emits the category object when a category is selected (either by scrolling or clicking).
selectedItem (EventEmitter) Emits the item object when a specific item is selected (you can hook this up to click events on individual items if implemented).
🧠 How It Works The top horizontal scroll bar shows category names.
The bottom scrollable section displays items under each category.
When you scroll the item list (bottomScroll), it uses the top 70% of the visible area to determine the active category and highlights it.
When you click a category, the item list scrolls to the corresponding section using scrollIntoView().
FAQs
An Angular component for smooth scrollable category navigation with section sync.
We found that ngx-category-scroll demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.