Add string to Tether.ITetherOptions.classes (#26873)

Boolean is used for disabling classes while strings is used for overriding. See docs: http://tether.io/
This commit is contained in:
Ryan Price
2018-07-03 09:37:19 -07:00
committed by Mohamed Hegazy
parent 64407a18dd
commit 72d2038348
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ declare namespace Tether {
interface ITetherOptions {
attachment: string;
bodyElement?: HTMLElement;
classes?: {[className: string]: boolean};
classes?: {[className: string]: boolean | string};
classPrefix?: string;
constraints?: ITetherConstraint[];
element?: HTMLElement | string | any /* JQuery */;
+5 -2
View File
@@ -9,7 +9,11 @@ new Tether({
targetAttachment: "top middle",
targetModifier: "visible",
offset: "-15px 0",
targetOffset: "0 0"
targetOffset: "0 0",
classes: {
'element': false,
'target': 'someClassName'
}
});
new Tether({
@@ -50,4 +54,3 @@ new Tether({
}
]
});