DevExtreme v23.2 is now available.

Explore our newest features/capabilities and share your thoughts with us.

Your search did not match any results.

Overview

DevExtreme Navigation components aids navigation in applications. DevExtreme provides various navigation controls, including Accordions, Menus, Drawers, TabPanels, and Toolbars. They suit any design and can be easily customized. This example demonstrates the TreeView and TabPanel controls. View other demos in this section to explore other navigation components.

www.wikipedia.org
Backend API
<div class="container"> <div class="left-content"> <dx-tree-view [dataSource]="continents" selectionMode="single" [selectByClick]="true" (onItemSelectionChanged)="changeSelection($event)" ></dx-tree-view> </div> <div class="right-content"> <div class="title-container"> <img alt="country flag" class="flag" [src]="countryData.flag" /> <div> <div class="country-name">{{ countryData.fullName }}</div> <div>{{ countryData.description }}</div> </div> </div> <div class="stats"> <div> <div class="sub-title">Area, km<sup>2</sup></div> <div class="stat-value">{{ countryData.area }}</div> </div> <div> <div class="sub-title">Population</div> <div class="stat-value">{{ countryData.population }}</div> </div> <div> <div class="sub-title">GDP, billion</div> <div class="stat-value">{{ "$" + countryData.gdp }}</div> </div> </div> <div class="sub-title">Largest cities</div> <dx-tab-panel id="tabpanel" [(dataSource)]="citiesData" [animationEnabled]="true" [(selectedIndex)]="tabPanelIndex" itemTitleTemplate="title" itemTemplate="city-template" > <div *dxTemplate="let item of 'title'"> <span class="tab-panel-title">{{ item.text }}</span> </div> <div *dxTemplate="let city of 'city-template'"> <img alt="country flag" class="flag" [src]="city.flag" /> <div class="right-content"> <div ><b>{{ city.capital ? "Capital. " : "" }}</b >{{ city.description }}</div > <div class="stats"> <div> <div>Population</div> <div ><b>{{ city.population }} people</b></div > </div> <div> <div>Area</div> <div ><b>{{ city.area }} km<sup>2</sup></b></div > </div> <div> <div>Density</div> <div ><b>{{ city.density }}/km<sup>2</sup></b></div > </div> </div> </div> </div> </dx-tab-panel> </div> </div>
import { NgModule, Component, enableProdMode } from '@angular/core'; import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { DxTabPanelModule, DxTreeViewModule, DxTemplateModule, } from 'devextreme-angular'; import { Continent, City, Country, Service, } from './app.service'; if (!/localhost/.test(document.location.host)) { enableProdMode(); } @Component({ selector: 'demo-app', templateUrl: 'app/app.component.html', styleUrls: ['app/app.component.css'], providers: [Service], }) export class AppComponent { continents: Continent[]; countryData: Country; citiesData: City[]; tabPanelIndex: number; changeSelection(e) { const countryData = e.itemData; if (countryData.cities) { this.countryData = e.itemData; this.citiesData = countryData.cities; this.tabPanelIndex = 0; } } constructor(service: Service) { this.continents = service.getContinents(); this.countryData = this.continents[0].items[0]; this.citiesData = this.countryData.cities; this.tabPanelIndex = 0; } } @NgModule({ imports: [ BrowserModule, BrowserTransferStateModule, DxTabPanelModule, DxTreeViewModule, DxTemplateModule, ], declarations: [AppComponent], bootstrap: [AppComponent], }) export class AppModule { } platformBrowserDynamic().bootstrapModule(AppModule);
::ng-deep .container { position: relative; } ::ng-deep .container, .left-content { min-height: 530px; } ::ng-deep .left-content { display: inline-block; width: 180px; padding: 0 10px 10px; background-color: rgba(191, 191, 191, 0.15); box-shadow: -5px 0 14px -8px rgba(0, 0, 0, 0.25) inset; } ::ng-deep .right-content { position: absolute; right: 0; left: 220px; top: 0; height: 100%; } sup { font-size: 0.8em; vertical-align: super; line-height: 0; } ::ng-deep .right-content .sub-title { font-size: 120%; color: rgba(152, 152, 152, 0.8); } ::ng-deep .title-container { min-height: 140px; margin-bottom: 10px; } ::ng-deep .title-container .country-name { font-size: 240%; font-weight: bold; line-height: 34px; margin-bottom: 10px; } ::ng-deep .title-container > div:not(.flag) { margin-left: 204px; } ::ng-deep .stats { display: table; width: 100%; margin-bottom: 20px; } ::ng-deep .stats > div { display: table-cell; text-align: center; border: 1px solid rgba(191, 191, 191, 0.25); padding: 20px 0 25px; width: 33%; } ::ng-deep .stats > div:first-child, .stats > div:last-child { border-right-width: 0; border-left-width: 0; } ::ng-deep .stats .stat-value { font-size: 200%; } ::ng-deep #tabpanel { margin-top: 10px; } ::ng-deep #tabpanel .dx-multiview-wrapper { border-left: 0; border-right: 0; border-bottom: 0; } ::ng-deep #tabpanel .tab-panel-title { font-size: 120%; font-weight: 500; } ::ng-deep #tabpanel .dx-multiview-item-content { padding: 20px 0 22px; min-height: 178px; position: relative; } ::ng-deep #tabpanel .right-content { top: 15px; left: 202px; } ::ng-deep #tabpanel .stats { width: 398px; margin-top: 20px; border-top: 1px solid rgba(191, 191, 191, 0.25); } ::ng-deep #tabpanel .stats > div { padding: 7px 0; text-align: left; border: 0; } ::ng-deep #tabpanel .stats > div:first-child { width: 40%; } ::ng-deep #tabpanel .stats > div:not(:first-child) { width: 30%; } ::ng-deep .flag { width: 172px; max-height: 122px; border: 1px solid rgba(191, 191, 191, 0.25); float: left; margin: 0 30px 10px 0; } ::ng-deep .left-content .dx-treeview-node.dx-state-selected > .dx-item > .dx-item-content { font-weight: 500; }
import { Injectable } from '@angular/core'; class Details { id: string; text: string; population: string; area: string; flag: string; description: string; } export class City extends Details { density: string; capital?: true; } export class Country extends Details { expanded?: boolean; selected?: boolean; gdp: string; fullName: string; cities: City[]; } export class Continent { id: string; text: string; expanded?: boolean; selected?: boolean; items: Country[]; } const continents: Continent[] = [{ id: '1', text: 'Africa', expanded: true, items: [{ id: '1_1', text: 'Egypt', fullName: 'Arab Republic of Egypt', description: 'Egypt is a transcontinental country spanning the northeast corner of Africa and southwest corner of Asia by a land bridge the Sinai Peninsula forms.', area: '1,010,407.87', population: '94,798,827', gdp: '1,173', selected: true, flag: '../../../../images/flags/Egypt.svg', cities: [{ id: '1_1_1', text: 'Cairo', population: '9,500,000', area: '528', density: '19,376', description: "The city's metropolitan area is the largest in the Middle East and the Arab world, and the 15th-largest in the world, is associated with ancient Egypt.", capital: true, flag: '../../../../images/flags/Cairo.svg', }, { id: '1_1_2', text: 'Alexandria', population: '4,984,387', area: '2,679', density: '1,900', description: 'Alexandria is the second largest city and a major economic center in Egypt, extending about 32 km (20 mi) along the coast of the Mediterranean Sea in the north central part of the country.', flag: '../../../../images/flags/Alexandria.svg', }, { id: '1_1_3', text: 'Giza', population: '3,628,062', area: '1,579.75', density: '2,300', description: 'Giza is the third-largest city in Egypt. It is located on the west bank of the Nile, 5 km (3 mi) southwest of central Cairo.', flag: '../../../../images/flags/Giza.svg', }], }, { id: '1_2', text: 'South Africa', fullName: 'Republic of South Africa', description: 'South Africa is the southernmost country in Africa. It is bounded on the south by 2,798 kilometres (1,739 mi) of coastline of Southern Africa stretching along the South Atlantic and Indian Oceans.', area: '1,221,037', population: '54,956,900', gdp: '742.461', flag: '../../../../images/flags/SouthAfrica.svg', cities: [{ id: '1_2_2', text: 'Pretoria', population: '741,651', area: '687.54', density: '1,100', description: "Pretoria is a city in the northern part of Gauteng, South Africa. Being one of the country's three capital cities, it serves as the seat of the executive branch of government.", capital: true, flag: '../../../../images/flags/Pretoria.svg', }, { id: '1_2_1', text: 'Johannesburg', population: '957,441', area: '334.81', density: '2,900', description: 'Johannesburg is the largest city in South Africa and is one of the 50 largest urban areas in the world.', flag: '../../../../images/flags/Johannesburg.svg', }, { id: '1_2_3', text: 'Durban', population: '595,061', area: '225.91', density: '2,600', description: 'Durban is the largest city in the South African province of KwaZulu-Natal. It is Located on the Indian Ocean coast of the African continent.', flag: '../../../../images/flags/Durban.svg', }], }, ], }, { id: '2', text: 'Asia', items: [{ id: '2_1', text: 'Japan', fullName: 'Japan', description: 'Japan is a sovereign island nation in East Asia. Located in the Pacific Ocean, it lies off the eastern coast of the Asian mainland and stretches from the Sea of Okhotsk in the north to the East China Sea and China in the southwest.', area: '377,972', population: '126,672,000', gdp: '5,420', flag: '../../../../images/flags/Japan.svg', cities: [{ id: '2_1_1', text: 'Tokyo', population: '13,617,445', area: '2,187.66', density: '6,224.66', description: 'The Greater Tokyo Area is the most populous metropolitan area in the world. The city is located in the Kantō region on the southeastern side of the main island Honshu and includes the Izu Islands and Ogasawara Islands.', capital: true, flag: '../../../../images/flags/Tokyo.svg', }, { id: '2_1_2', text: 'Yokohama', population: '3,732,616', area: '437.38', density: '8,534.03', description: 'Yokohama is the second largest city in Japan by population, after Tokyo, and the most populous municipality of Japan. It lies on Tokyo Bay, south of Tokyo, in the Kantō region of the main island of Honshu.', flag: '../../../../images/flags/Yokohama.svg', }, { id: '2_1_3', text: 'Osaka', population: '2,668,586', area: '223', density: '12,030', description: 'Osaka is a designated city in the Kansai region of Japan. It is the largest component of the Keihanshin Metropolitan Area, the second largest metropolitan area in Japan. The city is situated at the mouth of the Yodo River on Osaka Bay, Honshu island', flag: '../../../../images/flags/Osaka.svg', }, { id: '2_1_4', text: 'Nagoya', population: '2,283,289', area: '326.43', density: '6,969.86', description: "Nagoya is the largest city in the Chūbu region of Japan. It is Japan's third-largest incorporated city and the fourth most populous urban area.", flag: '../../../../images/flags/Nagoya.svg', }], }, { id: '2_2', text: 'Malaysia', fullName: 'Malaysia', description: 'Malaysia is a federal constitutional monarchy located in Southeast Asia.', area: '330,803', population: '31,708,000', gdp: '913.593', flag: '../../../../images/flags/Malaysia.svg', cities: [{ id: '2_2_1', text: 'Kuala Lumpur', population: '1,768,000', area: '243', density: '6,891', description: 'Kuala Lumpur, officially the Federal Territory of Kuala Lumpur, or commonly KL, is the largest city of Malaysia. It is located in Klang Valley.', capital: true, flag: '../../../../images/flags/KualaLumpur.svg', }, { id: '2_2_2', text: 'George Town', population: '708,127', area: '305.77', density: '2,372', description: 'George Town, the capital city of the Malaysian state of Penang, is located at the northeastern tip of Penang Island.', flag: '../../../../images/flags/GeorgeTown.svg', }, { id: '2_2_3', text: 'Ipoh', population: '657,892', area: '643', density: '1,023', description: 'Ipoh is the capital of the Malaysian state of Perak. It stands on the banks of the Kinta River.', flag: '../../../../images/flags/Ipoh.svg', }], }], }, { id: '3', text: 'Australia', items: [{ id: '3_1', text: 'Australia', fullName: 'Commonwealth of Australia', description: "It is a sovereign country comprising the mainland of the Australian continent, the island of Tasmania and numerous smaller islands. It is the largest country in Oceania and the world's sixth-largest country by total area.", area: '7,692,024', population: '24,696,700', gdp: '1,189', flag: '../../../../images/flags/Australia.svg', cities: [{ id: '3_1_1', text: 'Canberra', population: '403,468', area: '814.2', density: '428.6', description: 'The city is located at the northern end of the Australian Capital Territory (ACT), 280 km (170 mi) south-west of Sydney, and 660 km (410 mi) north-east of Melbourne.', capital: true, flag: '../../../../images/flags/Canberra.svg', }, { id: '3_1_2', text: 'Sydney', population: '5,029,768', area: '12,367.7', density: '400', description: "Sydney is the state capital of New South Wales and the most populous city in Australia and Oceania. It is located on Australia's east coast.", flag: '../../../../images/flags/Sydney.svg', }, { id: '3_1_3', text: 'Melbourne', population: '4,725,316', area: '2,664', density: '453', description: 'Melbourne is the capital and most populous city of the Australian state of Victoria, and the second-most populous city in Australia and Oceania. The city is located in the south-eastern part of mainland Australia.', flag: '../../../../images/flags/Melbourne.svg', }], }], }, { id: '4', text: 'Europe', items: [{ id: '4_1', text: 'Germany', fullName: 'Federal Republic of Germany', description: 'The country is a federal parliamentary republic in central-western Europe. Germany is the most populous member state of the European Union.', area: '357,168', population: '82,175,700', gdp: '4,150', flag: '../../../../images/flags/Germany.svg', cities: [{ id: '4_1_1', text: 'Berlin', capital: true, population: '3,670,622', area: '891.7', density: '4,100', description: 'Berlin is the capital and the largest city of Germany as well as one of its 16 constituent states.', flag: '../../../../images/flags/Berlin.svg', }, { id: '4_1_2', text: 'Hamburg', population: '1,787,408', area: '755', density: '2,400', description: 'Hamburg, officially the Free and Hanseatic City of Hamburg, is the second largest city and a state of Germany.', flag: '../../../../images/flags/Hamburg.svg', }, { id: '4_1_3', text: 'Munich', population: '1,450,381', area: '310.43', density: '4,700', description: 'Munich is the capital and the most populated city in the German state of Bavaria, on the banks of River Isar north of the Bavarian Alps.', flag: '../../../../images/flags/Munich.svg', }], }, { id: '4_2', text: 'Russia', fullName: 'Russian Federation', description: "Russia is a country in Eurasia. It is the largest country in the world by surface area, covering more than one-eighth of the Earth's inhabited land area.", area: '17,075,200', population: '144,463,451', gdp: '4,000', flag: '../../../../images/flags/Russia.svg', cities: [{ id: '4_2_1', text: 'Moscow', capital: true, population: '12,228,685', area: '2,511', density: '4,833.36', description: 'Moscow is the capital and most populous city of Russia. It is located in the western part of Russia on the banks of the Moskva River.', flag: '../../../../images/flags/Moscow.svg', }, { id: '4_2_2', text: 'Saint Petersburg', population: '5,323,300', area: '1,439', density: '3,764.49', description: "Saint Petersburg is Russia's second-largest city after Moscow. An important Russian port on the Baltic Sea, it is politically administered as a federal subject (a federal city).", flag: '../../../../images/flags/SaintPetersburg.svg', }, { id: '4_2_3', text: 'Novosibirsk', population: '1,473,754', area: '502.7', density: '2,932', description: 'Novosibirsk is the most populous city in Asian Russia. The city is located in the southwestern part of Siberia on the banks of the Ob River adjacent to the Ob River Valley.', flag: '../../../../images/flags/Novosibirsk.svg', }], }, { id: '4_3', text: 'United Kingdom', fullName: 'United Kingdom of Great Britain and Northern Ireland', description: 'United Kingdom is a sovereign country in western Europe. Lying off the north-western coast of the European mainland, the United Kingdom includes the island of Great Britain, the north-eastern part of the island of Ireland and many smaller islands.', area: '242,495', population: '65,648,000', gdp: '2,790', flag: '../../../../images/flags/UnitedKingdom.svg', cities: [{ id: '4_3_1', text: 'London', capital: true, population: '8,787,892', area: '1,572', density: '5,590', description: 'London is the capital and most populous city of England and the United Kingdom. It stands on the River Thames in the south-east of the Great Britain island.', flag: '../../../../images/flags/London.svg', }, { id: '4_3_2', text: 'Birmingham', population: '1,124,600', area: '267.8', density: '4,199', description: 'Birmingham is a city and metropolitan borough in the West Midlands, England. The city stands on the small River Rea.', flag: '../../../../images/flags/Birmingham.svg', }], }], }, { id: '5', text: 'North America', items: [{ id: '5_2', text: 'Mexico', fullName: 'United Mexican States', description: 'Mexico is a federal republic in the southern portion of North America.', area: '1,972,550', population: '119,530,753', gdp: '2,406', flag: '../../../../images/flags/Mexico.svg', cities: [{ id: '5_2_1', text: 'Mexico City', population: '8,918,653', area: '1,485', density: '6,000', description: 'Mexico City is the most populous city of Mexico. It is located in the Valley of Mexico, a large valley in the high plateaus at the center of Mexico.', capital: true, flag: '../../../../images/flags/MexicoCity.svg', }, { id: '5_2_2', text: 'Puebla', population: '2,499,519', area: '534.32', density: '4,678', description: 'Puebla, formally Heroica Puebla de Zaragoza and also known as Puebla de los Angeles, is located in the Valley of Puebla, a large valley surrounded by the mountains and volcanoes of the Trans-Mexican volcanic belt on four sides.', flag: '../../../../images/flags/Puebla.svg', }, { id: '5_2_3', text: 'Guadalajara', population: '1,495,189', area: '151', density: '10,361', description: 'Guadalajara is the capital and largest city of the Mexican state of Jalisco. The city is in the central region of Jalisco in the Western-Pacific area of Mexico.', flag: '../../../../images/flags/Guadalajara.svg', }], }, { id: '5_1', text: 'United States', fullName: 'United States of America', description: 'The country is a federal republic mainly located in the central part of the North American continent. The state of Alaska is in the northwest corner of North America and the state of Hawaii is an archipelago in the mid-Pacific Ocean.', area: '9,833,520', population: '325,365,189', gdp: '18,558', flag: '../../../../images/flags/UnitedStates.svg', cities: [{ id: '5_1_1', text: 'Washington', capital: true, population: '681,170', area: '177', density: '4,308', description: 'Washington, D.C., is located in the mid-Atlantic region of the U.S. East Coast and partially bordered by the Potomac River.', flag: '../../../../images/flags/Washington.svg', }, { id: '5_1_2', text: 'New York City', population: '8,175,133', area: '34,306', density: '10,890', description: 'The City of New York is the most populous city in the United States. Located at the southern tip of the state of New York, the city is the center of the New York metropolitan area, one of the most populous urban agglomerations in the world.', flag: '../../../../images/flags/NewYorkCity.svg', }, { id: '5_1_3', text: 'Los Angeles', population: '3,792,621', area: '1,302.15', density: '8,483.02', description: 'Los Angeles, officially the City of Los Angeles, is located on the on the West Coast of the United States. It is the second most populous city in the United States and the most populous city in the state of California.', flag: '../../../../images/flags/LosAngeles.svg', }, { id: '5_1_4', text: 'Chicago', population: '2,695,598', area: '606.42', density: '11,898.29', description: 'Chicago, officially the City of Chicago, is the third-most populous city in the United States. It is located in northern Illinois at the south-western tip of Lake Michigan.', flag: '../../../../images/flags/Chicago.svg', }], }], }, { id: '6', text: 'South America', items: [{ id: '6_1', text: 'Brazil', fullName: 'Federative Republic of Brazil', description: "Brasília is the federal capital of Brazil and seat of the Federal District government. It occupies a large area along the eastern coast of South America and includes much of the continent's interior.", area: '8,515,767', population: '208,064,000', gdp: '3,217', flag: '../../../../images/flags/Brazil.svg', cities: [{ id: '6_1_1', text: 'Brasilia', capital: true, population: '2,977,216', area: '5,801,937', density: '513,14', description: "Brasília is the federal capital of Brazil and seat of the Federal District government. The city is located atop the Brazilian highlands in the country's center-western region.", flag: '../../../../images/flags/Brasilia.svg', }, { id: '6_1_2', text: 'Sao Paulo', population: '12,038,175', area: '1,521.11', density: '7,913.29', description: 'Sao Paulo is a municipality in the southeast region of Brazil. The city is the capital of the surrounding San Paulo state.', flag: '../../../../images/flags/SaoPaulo.svg', }, { id: '6_1_3', text: 'Rio de Janeiro', population: '6,453,682', area: '1,221', density: '2,705.1', description: "Rio de Janeiro is the second-most populous municipality in Brazil and the capital of the Rio de Janeiro state, Brazil's third-most populous state.", flag: '../../../../images/flags/RioDeJaneiro.svg', }], }, { id: '6_2', text: 'Colombia', fullName: 'Republic of Colombia', description: 'Colombia is a sovereign state mainly located in the northwest of South America, with territories in Central America.', area: '1,141,748', population: '49,364,592', gdp: '720.151', flag: '../../../../images/flags/Colombia.svg', cities: [{ id: '6_2_1', text: 'Bogota', capital: true, population: '8,080,734', area: '1,587', density: '6,060', description: 'Bogotá is the capital and largest city of Colombia administered as the Capital District, although often thought of as part of Cundinamarca. The city is located in the southeastern part of the Bogotá savanna.', flag: '../../../../images/flags/Bogota.svg', }, { id: '6_2_2', text: 'Medellin', population: '2,441,123', area: '380.64', density: '6,413', description: 'Medellín is the second-largest city in Colombia and the capital of the Antioquia department. It is located in the Aburrá Valley, a central region of the Andes Mountains in South America.', flag: '../../../../images/flags/Medellin.svg', }, { id: '6_2_3', text: 'Cali', population: '2,400,653', area: '619', density: '3,900', description: 'Santiago de Cali, usually known by its short name Cali, is the capital of the Valle del Cauca department, and the most populous city in southwest Colombia.', flag: '../../../../images/flags/Cali.svg', }], }], }]; @Injectable() export class Service { getContinents(): Continent[] { return continents; } }
// In real applications, you should not transpile code in the browser. // You can see how to create your own application with Angular and DevExtreme here: // https://js.devexpress.com/Documentation/Guide/Angular_Components/Getting_Started/Create_a_DevExtreme_Application/ window.exports = window.exports || {}; window.config = { transpiler: 'ts', typescriptOptions: { module: 'system', emitDecoratorMetadata: true, experimentalDecorators: true, }, meta: { 'typescript': { 'exports': 'ts', }, 'devextreme/time_zone_utils.js': { 'esModule': true, }, 'devextreme/localization.js': { 'esModule': true, }, 'devextreme/viz/palette.js': { 'esModule': true, }, }, paths: { 'npm:': 'https://unpkg.com/', }, map: { 'ts': 'npm:plugin-typescript@4.2.4/lib/plugin.js', 'typescript': 'npm:typescript@4.2.4/lib/typescript.js', '@angular/core': 'npm:@angular/core@12.2.17', '@angular/platform-browser': 'npm:@angular/platform-browser@12.2.17', '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic@12.2.17', '@angular/forms': 'npm:@angular/forms@12.2.17', '@angular/common': 'npm:@angular/common@12.2.17', '@angular/compiler': 'npm:@angular/compiler@12.2.17', 'tslib': 'npm:tslib@2.6.2/tslib.js', 'rxjs': 'npm:rxjs@7.5.3/dist/bundles/rxjs.umd.js', 'rxjs/operators': 'npm:rxjs@7.5.3/dist/cjs/operators/index.js', 'rrule': 'npm:rrule@2.6.4/dist/es5/rrule.js', 'luxon': 'npm:luxon@1.28.1/build/global/luxon.min.js', 'es6-object-assign': 'npm:es6-object-assign@1.1.0', 'devextreme': 'npm:devextreme@23.2.5/cjs', 'devextreme/bundles/dx.all': 'npm:devextreme@23.2.5/bundles/dx.all.js', 'jszip': 'npm:jszip@3.10.1/dist/jszip.min.js', 'devextreme-quill': 'npm:devextreme-quill@1.6.4/dist/dx-quill.min.js', 'devexpress-diagram': 'npm:devexpress-diagram@2.2.5', 'devexpress-gantt': 'npm:devexpress-gantt@4.1.51', 'devextreme-angular': 'npm:devextreme-angular@23.2.5', '@devextreme/runtime': 'npm:@devextreme/runtime@3.0.12', 'inferno': 'npm:inferno@7.4.11/dist/inferno.min.js', 'inferno-compat': 'npm:inferno-compat/dist/inferno-compat.min.js', 'inferno-create-element': 'npm:inferno-create-element@7.4.11/dist/inferno-create-element.min.js', 'inferno-dom': 'npm:inferno-dom/dist/inferno-dom.min.js', 'inferno-hydrate': 'npm:inferno-hydrate@7.4.11/dist/inferno-hydrate.min.js', 'inferno-clone-vnode': 'npm:inferno-clone-vnode/dist/inferno-clone-vnode.min.js', 'inferno-create-class': 'npm:inferno-create-class/dist/inferno-create-class.min.js', 'inferno-extras': 'npm:inferno-extras/dist/inferno-extras.min.js', // Prettier 'prettier/standalone': 'npm:prettier@2.8.4/standalone.js', 'prettier/parser-html': 'npm:prettier@2.8.4/parser-html.js', }, packages: { 'app': { main: './app.component.ts', defaultExtension: 'ts', }, 'devextreme': { defaultExtension: 'js', }, 'devextreme/events/utils': { main: 'index', }, 'devextreme/events': { main: 'index', }, 'es6-object-assign': { main: './index.js', defaultExtension: 'js', }, 'rxjs': { defaultExtension: 'js', }, 'rxjs/operators': { defaultExtension: 'js', }, }, packageConfigPaths: [ 'npm:@devextreme/*/package.json', 'npm:@devextreme/runtime@3.0.12/inferno/package.json', 'npm:@angular/*/package.json', 'npm:@angular/common@12.2.17/*/package.json', 'npm:rxjs@7.5.3/package.json', 'npm:rxjs@7.5.3/operators/package.json', 'npm:devextreme-angular@23.2.5/*/package.json', 'npm:devextreme-angular@23.2.5/ui/*/package.json', 'npm:devextreme-angular@23.2.5/package.json', 'npm:devexpress-diagram@2.2.5/package.json', 'npm:devexpress-gantt@4.1.51/package.json', ], }; System.config(window.config);
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DevExtreme Demo</title> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <link rel="stylesheet" type="text/css" href="https://cdn3.devexpress.com/jslib/23.2.5/css/dx.light.css" /> <script src="https://unpkg.com/core-js@2.6.12/client/shim.min.js"></script> <script src="https://unpkg.com/zone.js@0.12.0/dist/zone.js"></script> <script src="https://unpkg.com/reflect-metadata@0.1.13/Reflect.js"></script> <script src="https://unpkg.com/systemjs@0.21.3/dist/system.js"></script> <script src="config.js"></script> <script> System.import("app").catch(console.error.bind(console)); </script> </head> <body class="dx-viewport"> <div class="demo-container"> <demo-app>Loading...</demo-app> </div> </body> </html>