gd-bs 5.4.9 → 5.5.2

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.
@@ -275,6 +275,12 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
275
275
  // The tippy instance
276
276
  get tippy() { return this._tippy; }
277
277
 
278
+ // Sets the tippy content
279
+ setContent(content: string | Element) {
280
+ // Set the tippy content
281
+ this.tippy.setContent(content);
282
+ }
283
+
278
284
  // Shows the popover
279
285
  show() {
280
286
  // See if it's hidden
@@ -85,6 +85,9 @@ export interface IPopover {
85
85
  /** Toggles an element's popover. */
86
86
  toggle: () => void;
87
87
 
88
+ /** Sets the tippy content. */
89
+ setContent: (content: string | Element) => void;
90
+
88
91
  /** Reveals an element’s popover. */
89
92
  show: () => void;
90
93
  }
@@ -329,6 +329,12 @@ class _Tooltip extends Base<ITooltipProps> {
329
329
  // The tippy instance
330
330
  get tippy() { return this._tippy; }
331
331
 
332
+ // Sets the tippy content
333
+ setContent(content: string | Element) {
334
+ // Set the tippy content
335
+ this.tippy.setContent(content);
336
+ }
337
+
332
338
  // Shows the tooltip
333
339
  show() {
334
340
  // See if it's hidden
@@ -44,7 +44,7 @@ export const Tooltip: (props: ITooltipProps, template?: string) => ITooltip;
44
44
  /**
45
45
  * Tooltip Placements
46
46
  */
47
- export const TooltipPlacements: ITooltipPlacements;
47
+ export const TooltipPlacements: ITooltipPlacements;
48
48
 
49
49
  /**
50
50
  * Tooltip Types
@@ -77,6 +77,9 @@ export interface ITooltip {
77
77
  /** Toggles an element's tooltip. */
78
78
  toggle: () => void;
79
79
 
80
+ /** Sets the tippy content. */
81
+ setContent: (content: string | Element) => void;
82
+
80
83
  /** Reveals an element’s tooltip. */
81
84
  show: () => void;
82
85
  }
@@ -113,7 +116,7 @@ export type ITooltipTypes = {
113
116
  /**
114
117
  * Tooltip Placements
115
118
  */
116
- export type ITooltipPlacements = {
119
+ export type ITooltipPlacements = {
117
120
  Auto: number;
118
121
  AutoStart: number;
119
122
  AutoEnd: number;
@@ -0,0 +1,14 @@
1
+ // Import the IE fix
2
+ import "./ie";
3
+
4
+ // Bootstrap Components
5
+ import * as Components from "./components";
6
+ export { Components }
7
+
8
+ // TippyJS library
9
+ import { tippy } from "./libs";
10
+ export { tippy }
11
+
12
+ // Bootstrap Global library
13
+ const BS = { Components, tippy }
14
+ window["GD"] = window["GD"] || BS;