Angular UI Components Documentation
The Angular Ribbon can be used as a tabbed toolbar or a mega menu. This guide adds the Angular Ribbon (jqxRibbon) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxribbon 
In an Angular project (to start one, see Getting started with Angular), add the package with the Angular CLI. It asks for a theme and adds the styles to angular.json:
ng add jqwidgets-ng
Components are standalone: add jqxRibbonModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxRibbonModule } from 'jqwidgets-ng/jqxribbon';
@Component({
selector: 'app-root',
imports: [jqxRibbonModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Ribbon at the Bottom demo.
<jqxRibbon #jqxRibbon
[width]="370"
[height]="300"
[position]="'bottom'"
[selectionMode]="'click'"
[animationType]="'fade'">
<ul>
<li style="margin-left: 30px;">Browse Books</li>
<li>Shipping</li>
<li>About Us</li>
</ul>
<div>
<div>
<table>
<tr>
<td>
<b>Fiction</b>
</td>
<td>
<b>Biography</b>
</td>
<td>
<b>Science</b>
</td>
</tr>
<tr>
<td>
<a href="#">Adventure</a>
</td>
<td>
<a href="#">Biography: General</a>
</td>
<td>
<a href="#">Astronomy</a>
</td>
</tr>
<tr>
<td>
<a href="#">Classics</a>
</td>
<td>
<a href="#">Diaries, Letters & Journals</a>
</td>
<td>
<a href="#">Biology</a>
</td>
</tr>
<tr>
<td>
<a href="#">Historical Fiction</a>
</td>
<td>
<a href="#">Memoirs</a>
</td>
<td>
<a href="#">Geography</a>
</td>
</tr>
<tr>
<td>
<a href="#">Romance</a>
</td>
<td>
<b>Food & Drink</b>
</td>
<td>
<a href="#">Mathematics</a>
</td>
</tr>
<tr>
<td>
<a href="#">Science Fiction</a>
</td>
<td>
<a href="#">General Cookery</a>
</td>
<td>
<a href="#">Physics</a>
</td>
</tr>
<tr>
<td>
<a href="#">Thrillers</a>
</td>
<td>
<a href="#">National Cuisine</a>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<a href="#">Quick & Easy Cooking</a>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td>
<a href="#">Vegetarian Cookery</a>
</td>
<td>
<a href="#">More books >></a>
</td>
</tr>
</table>
</div>
<div>
<table>
<tr>
<td>
<a href="#">Countries we ship to</a>
</td>
</tr>
<tr>
<td>
<a href="#">Delivery options</a>
</td>
</tr>
<tr>
<td>
<a href="#">Order cancellation and returns</a>
</td>
</tr>
</table>
</div>
<div>
<table>
<tr>
<td>
<a href="#">Contact us</a>
</td>
<td rowspan="3" style="width: 125px;"></td>
<td rowspan="3">
<img src="https://www.jqwidgets.com/angular/images/bookshop.png" />
</td>
</tr>
<tr>
<td>
<a href="#">Jobs</a>
</td>
</tr>
<tr>
<td>
<a href="#">Affiliates</a>
</td>
</tr>
</table>
</div>
</div>
</jqxRibbon>import { Component, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';
import { jqxRibbonModule } from 'jqwidgets-ng/jqxribbon';
@Component({
imports: [CommonModule, jqxRibbonModule],
selector: 'app-root',
styleUrl: './app.css',
templateUrl: './app.html',
encapsulation: ViewEncapsulation.None
})
export class App {}
html, body {
width: 100vw;
height: 100vh;
padding: 0;
margin: 0;
}
table {
border-collapse: separate;
border-spacing: 15px 5px;
}
Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, change: This event is triggered when the user selects or unselects an item.
<jqxRibbon (onChange)="onChange($event)"></jqxRibbon>
onChange(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, val: Sets or gets the selected index.
<jqxRibbon #myRibbon></jqxRibbon>
import { Component, viewChild } from '@angular/core';
import { jqxRibbonModule, jqxRibbonComponent } from 'jqwidgets-ng/jqxribbon';
@Component({
selector: 'app-root',
imports: [jqxRibbonModule],
templateUrl: './app.html'
})
export class App {
readonly myRibbon = viewChild.required<jqxRibbonComponent>('myRibbon');
run(): void {
const value = this.myRibbon().val();
console.log(value);
}
}