diff --git a/core/src/components.d.ts b/core/src/components.d.ts index ab4f626cf3..979a1101cb 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -338,11 +338,11 @@ export namespace Components { */ "color"?: Color; /** - * The number of breadcrumbs to show after the collapsed indicator. If this property exists `maxItems` will be ignored. + * The number of breadcrumbs to show after the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed. */ "itemsAfterCollapse": number; /** - * The number of breadcrumbs to show before the collapsed indicator. If this property exists `maxItems` will be ignored. + * The number of breadcrumbs to show before the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed. */ "itemsBeforeCollapse": number; /** @@ -4228,11 +4228,11 @@ declare namespace LocalJSX { */ "color"?: Color; /** - * The number of breadcrumbs to show after the collapsed indicator. If this property exists `maxItems` will be ignored. + * The number of breadcrumbs to show after the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed. */ "itemsAfterCollapse"?: number; /** - * The number of breadcrumbs to show before the collapsed indicator. If this property exists `maxItems` will be ignored. + * The number of breadcrumbs to show before the collapsed indicator. If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, the breadcrumbs will not be collapsed. */ "itemsBeforeCollapse"?: number; /** diff --git a/core/src/components/breadcrumbs/breadcrumbs.tsx b/core/src/components/breadcrumbs/breadcrumbs.tsx index cbb8379f91..62b149ac60 100644 --- a/core/src/components/breadcrumbs/breadcrumbs.tsx +++ b/core/src/components/breadcrumbs/breadcrumbs.tsx @@ -38,13 +38,15 @@ export class Breadcrumbs implements ComponentInterface { /** * The number of breadcrumbs to show before the collapsed indicator. - * If this property exists `maxItems` will be ignored. + * If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, + * the breadcrumbs will not be collapsed. */ @Prop() itemsBeforeCollapse = 1; /** * The number of breadcrumbs to show after the collapsed indicator. - * If this property exists `maxItems` will be ignored. + * If `itemsBeforeCollapse` + `itemsAfterCollapse` is greater than `maxItems`, + * the breadcrumbs will not be collapsed. */ @Prop() itemsAfterCollapse = 1;