mirror of
https://bitbucket.org/bellord13/kit.git
synced 2026-11-13 19:06:11 +03:00
upLG
This commit is contained in:
Vendored
+56
@@ -0,0 +1,56 @@
|
||||
interface Offset {
|
||||
left: number;
|
||||
top: number;
|
||||
}
|
||||
export declare type LgQuery = (selector: any) => lgQuery;
|
||||
export declare class lgQuery {
|
||||
static eventListeners: {
|
||||
[key: string]: any[];
|
||||
};
|
||||
static generateUUID(): string;
|
||||
private selector;
|
||||
private firstElement;
|
||||
private cssVenderPrefixes;
|
||||
constructor(selector: string | Element);
|
||||
private _getSelector;
|
||||
private _each;
|
||||
private _setCssVendorPrefix;
|
||||
private _getFirstEl;
|
||||
private isEventMatched;
|
||||
attr(attr: string): string;
|
||||
attr(attr: string, value: string | number | boolean): this;
|
||||
find(selector: any): lgQuery;
|
||||
first(): lgQuery;
|
||||
eq(index: number): lgQuery;
|
||||
parent(): lgQuery;
|
||||
get(): HTMLElement;
|
||||
removeAttr(attributes: string): this;
|
||||
wrap(className: string): this;
|
||||
addClass(classNames?: string): this;
|
||||
removeClass(classNames: string): this;
|
||||
hasClass(className: string): boolean;
|
||||
hasAttribute(attribute: string): boolean;
|
||||
toggleClass(className: string): this;
|
||||
css(property: string, value?: string | number): this;
|
||||
on(events: string, listener: (e: any) => void): this;
|
||||
once(event: string, listener: (e: any) => void): this;
|
||||
off(event: string): this;
|
||||
trigger<Detail>(event: string, detail?: Detail): this;
|
||||
load(url: string): this;
|
||||
html(): string;
|
||||
html(html: string): this;
|
||||
append(html: string | HTMLElement): this;
|
||||
prepend(html: string | HTMLElement): this;
|
||||
remove(): this;
|
||||
empty(): this;
|
||||
scrollTop(): number;
|
||||
scrollTop(scrollTop: number): this;
|
||||
scrollLeft(): number;
|
||||
scrollLeft(scrollLeft?: number): this;
|
||||
offset(): Offset;
|
||||
style(): CSSStyleDeclaration;
|
||||
width(): number;
|
||||
height(): number;
|
||||
}
|
||||
export declare function $LG(selector: any): lgQuery;
|
||||
export {};
|
||||
Reference in New Issue
Block a user