DevExtreme Angular - Title and Subtitle

Titles and subtitles are textual elements that provide an overview of what the widget visualizes.

Sankey Title and Subtitle

The title object configures the title; the title.subtitle object configures the subtitle.

HTML
TypeScript
  • <dx-sankey ... >
  • <dxo-title
  • text="I am the Title">
  • <dxo-subtitle
  • text="I am the Subtitle">
  • </dxo-subtitle>
  • </dxo-title>
  • </dx-sankey>
  • import { DxSankeyModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxSankeyModule
  • ],
  • // ...
  • })

You can set the title's text more concisely if you assign it directly to the title option. This is useful if you do not want to change the title's default settings and do not need a subtitle.

HTML
TypeScript
  • <dx-sankey ...
  • text="I am the Title">
  • </dx-sankey>
  • import { DxSankeyModule } from "devextreme-angular";
  • // ...
  • export class AppComponent {
  • // ...
  • }
  • @NgModule({
  • imports: [
  • // ...
  • DxSankeyModule
  • ],
  • // ...
  • })

View Demo

See Also