gd-bs 5.2.8 → 5.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.2.8",
3
+ "version": "5.2.9",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -1,3 +1,4 @@
1
+ import { setClassNames } from "../common";
1
2
  import { IBreadcrumbItem } from "./types";
2
3
  import { HTMLItem, HTMLLink } from "./templates";
3
4
 
@@ -28,6 +29,9 @@ export class BreadcrumbItem {
28
29
 
29
30
  // Configure the item
30
31
  private configure() {
32
+ // Set the class names
33
+ setClassNames(this._el, this._props.className);
34
+
31
35
  // See if this item is active
32
36
  if (this._props.isActive) {
33
37
  // Add the class name
@@ -57,6 +57,9 @@ export interface IBreadcrumb {
57
57
  * Breadcrumb Item
58
58
  */
59
59
  export interface IBreadcrumbItem {
60
+ /** Custom class names. */
61
+ className?: string;
62
+
60
63
  /** The breadcrumb link */
61
64
  href?: string;
62
65