-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path4826.3dd18b2ec221224d.js
1 lines (1 loc) · 5.24 KB
/
4826.3dd18b2ec221224d.js
1
"use strict";(self.webpackChunknp_ui_lib_app=self.webpackChunknp_ui_lib_app||[]).push([[4826],{4826:(T,l,i)=>{i.r(l),i.d(l,{NpBreadcrumbDemoModule:()=>u});var p=i(6895),s=i(8379),e=i(5499),t=i(4650);class Z{constructor(){this.importText="import { NpBreadcrumbModule } from 'np-ui-lib';",this.htmlText='<np-breadcrumb [items]="items"></np-breadcrumb>',this.modelText="items = [\n new NpBreadcrumbItem({ label: 'Galaxy', data: { id : 1} }),\n new NpBreadcrumbItem({ label: 'Earth', data: { id : 2} }),\n ...\n];",this.items=[new e.DC({label:"Galaxy",id:"lnkGalaxy"}),new e.DC({label:"Earth",disabled:!0}),new e.DC({label:"Asia"}),new e.DC({label:"India"}),new e.DC({label:"Gujarat"}),new e.DC({label:"Ahmedabad"})]}ngOnInit(){}onClick(r){alert(r.label)}static#t=this.\u0275fac=function(a){return new(a||Z)};static#e=this.\u0275cmp=t.Xpm({type:Z,selectors:[["app-np-breadcrumb-demo"]],decls:152,vars:8,consts:[[1,"page-header"],["title","Documentation"],[3,"innerText"],[1,"np-table"],["title","Examples"],[3,"items","onClick"],[3,"items","showIcon","onClick"],[3,"items","iconCss","onClick"]],template:function(a,n){1&a&&(t.TgZ(0,"h2",0),t._uU(1,"Breadcrumb"),t.qZA(),t.TgZ(2,"np-tabs")(3,"np-tab",1)(4,"np-card")(5,"np-card-body")(6,"b"),t._uU(7,"Module to import"),t.qZA(),t.TgZ(8,"div")(9,"pre"),t._UZ(10,"code",2),t.qZA()()()(),t.TgZ(11,"np-card")(12,"np-card-body")(13,"b"),t._uU(14,"HTML"),t.qZA(),t.TgZ(15,"div")(16,"pre"),t._UZ(17,"code",2),t.qZA()()()(),t.TgZ(18,"np-card")(19,"np-card-body")(20,"table",3)(21,"tr")(22,"th"),t._uU(23,"Property"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Description"),t.qZA(),t.TgZ(26,"th"),t._uU(27,"Type"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Default"),t.qZA()(),t.TgZ(30,"tr")(31,"td"),t._uU(32,"items"),t.qZA(),t.TgZ(33,"td"),t._uU(34,"Array of data"),t.qZA(),t.TgZ(35,"td"),t._uU(36,"NpBreadcrumbItem[]"),t.qZA(),t._UZ(37,"td"),t.qZA(),t.TgZ(38,"tr")(39,"td"),t._uU(40,"showIcon"),t.qZA(),t.TgZ(41,"td"),t._uU(42,"Show icon or not"),t.qZA(),t.TgZ(43,"td"),t._uU(44,"boolean"),t.qZA(),t.TgZ(45,"td"),t._uU(46,"true"),t.qZA()(),t.TgZ(47,"tr")(48,"td"),t._uU(49,"iconCss"),t.qZA(),t.TgZ(50,"td"),t._uU(51," Set CSS for icon like 'fa fa-home', "),t._UZ(52,"br"),t._uU(53,"if not passing this then default home icon will display. "),t.qZA(),t.TgZ(54,"td"),t._uU(55,"string"),t.qZA(),t._UZ(56,"td"),t.qZA(),t.TgZ(57,"tr")(58,"td"),t._uU(59,"styleClass"),t.qZA(),t.TgZ(60,"td"),t._uU(61,"Set extra class on component"),t.qZA(),t.TgZ(62,"td"),t._uU(63,"string"),t.qZA(),t._UZ(64,"td"),t.qZA(),t.TgZ(65,"tr")(66,"td"),t._uU(67,"inputId"),t.qZA(),t.TgZ(68,"td"),t._uU(69,"Set id attribute"),t.qZA(),t.TgZ(70,"td"),t._uU(71,"string"),t.qZA(),t._UZ(72,"td"),t.qZA()()()(),t.TgZ(73,"np-card")(74,"np-card-body")(75,"table",3)(76,"tr")(77,"th"),t._uU(78,"Method"),t.qZA(),t.TgZ(79,"th"),t._uU(80,"Description"),t.qZA(),t.TgZ(81,"th"),t._uU(82,"Parameters"),t.qZA()(),t.TgZ(83,"tr")(84,"td"),t._uU(85,"onClick(item: NpBreadcrumbItem)"),t.qZA(),t.TgZ(86,"td"),t._uU(87,"Callback event for click on item"),t.qZA(),t.TgZ(88,"td"),t._uU(89,"item: NpBreadcrumbItem"),t.qZA()()()()(),t.TgZ(90,"np-card")(91,"np-card-body")(92,"b"),t._uU(93,"NpBreadcrumbItem"),t.qZA(),t.TgZ(94,"pre")(95,"code"),t._uU(96),t.qZA()(),t.TgZ(97,"table",3)(98,"tr")(99,"th"),t._uU(100,"Property"),t.qZA(),t.TgZ(101,"th"),t._uU(102,"Description"),t.qZA(),t.TgZ(103,"th"),t._uU(104,"Type"),t.qZA(),t.TgZ(105,"th"),t._uU(106,"Default"),t.qZA()(),t.TgZ(107,"tr")(108,"td"),t._uU(109,"id"),t.qZA(),t.TgZ(110,"td"),t._uU(111,"Set id attributes to link"),t.qZA(),t.TgZ(112,"td"),t._uU(113,"string"),t.qZA(),t._UZ(114,"td"),t.qZA(),t.TgZ(115,"tr")(116,"td"),t._uU(117,"label"),t.qZA(),t.TgZ(118,"td"),t._uU(119,"Label to display, plain text or html string"),t.qZA(),t.TgZ(120,"td"),t._uU(121,"string"),t.qZA(),t._UZ(122,"td"),t.qZA(),t.TgZ(123,"tr")(124,"td"),t._uU(125,"data"),t.qZA(),t.TgZ(126,"td"),t._uU(127,"Data"),t.qZA(),t.TgZ(128,"td"),t._uU(129,"any"),t.qZA(),t._UZ(130,"td"),t.qZA(),t.TgZ(131,"tr")(132,"td"),t._uU(133,"disabled"),t.qZA(),t.TgZ(134,"td"),t._uU(135,"Set disabled"),t.qZA(),t.TgZ(136,"td"),t._uU(137,"boolean"),t.qZA(),t._UZ(138,"td"),t.qZA()()()()(),t.TgZ(139,"np-tab",4)(140,"fieldset")(141,"legend"),t._uU(142,"With default home icon"),t.qZA(),t.TgZ(143,"np-breadcrumb",5),t.NdJ("onClick",function(d){return n.onClick(d)}),t.qZA()(),t.TgZ(144,"fieldset")(145,"legend"),t._uU(146,"Set showIcon to false"),t.qZA(),t.TgZ(147,"np-breadcrumb",6),t.NdJ("onClick",function(d){return n.onClick(d)}),t.qZA()(),t.TgZ(148,"fieldset")(149,"legend"),t._uU(150,"Set iconCss attribute"),t.qZA(),t.TgZ(151,"np-breadcrumb",7),t.NdJ("onClick",function(d){return n.onClick(d)}),t.qZA()()()()),2&a&&(t.xp6(10),t.Q6J("innerText",n.importText),t.xp6(7),t.Q6J("innerText",n.htmlText),t.xp6(79),t.Oqu(n.modelText),t.xp6(47),t.Q6J("items",n.items),t.xp6(4),t.Q6J("items",n.items)("showIcon",!1),t.xp6(4),t.Q6J("items",n.items)("iconCss","fa fa-list"))},dependencies:[e.MB,e.c0,e.El,e.KA,e.Qk],encapsulation:2})}const m=[{path:"",component:Z}];class o{static#t=this.\u0275fac=function(a){return new(a||o)};static#e=this.\u0275mod=t.oAB({type:o});static#n=this.\u0275inj=t.cJS({imports:[s.Bz.forChild(m),s.Bz]})}class u{static#t=this.\u0275fac=function(a){return new(a||u)};static#e=this.\u0275mod=t.oAB({type:u});static#n=this.\u0275inj=t.cJS({imports:[p.ez,o,e.VP,e.Tk,e.i7]})}}}]);