update to v2.1.0
add support for querySeletor add toHTMLElement clean up comments fix bug in README
This commit is contained in:
@@ -6,15 +6,19 @@ export interface FluentDomObject {
|
||||
append: (obj: FluentDomObject | HTMLElement | string) => FluentDomObject;
|
||||
attr: (name: string, value: string) => FluentDomObject;
|
||||
c: (tagName: string) => FluentDomObject;
|
||||
|
||||
create: (tagName: string) => FluentDomObject;
|
||||
className: (className: string) => FluentDomObject;
|
||||
clear: () => FluentDomObject;
|
||||
cls: (className: string) => FluentDomObject;
|
||||
clr: () => FluentDomObject;
|
||||
|
||||
h: (url: string) => FluentDomObject;
|
||||
href: (url: string) => FluentDomObject;
|
||||
html: (content: string) => FluentDomObject;
|
||||
|
||||
id: (id: string) => FluentDomObject;
|
||||
|
||||
l: (
|
||||
type: keyof HTMLElementEventMap,
|
||||
listener: () => {},
|
||||
@@ -25,6 +29,10 @@ export interface FluentDomObject {
|
||||
listener: () => {},
|
||||
optionsOrUseCapture?: boolean | object,
|
||||
) => FluentDomObject;
|
||||
|
||||
q: (selector: string) => FluentDomObject;
|
||||
querySelector: (selector: string) => FluentDomObject;
|
||||
|
||||
s:
|
||||
| ((prop: CSSStyleDeclaration) => FluentDomObject)
|
||||
| ((prop: string, value: string) => FluentDomObject);
|
||||
@@ -36,6 +44,8 @@ export interface FluentDomObject {
|
||||
text: (text: string) => FluentDomObject;
|
||||
title: (title: string) => FluentDomObject;
|
||||
toDom: () => HTMLElement | null;
|
||||
toHTMLElement: () => HTMLElement | null;
|
||||
|
||||
unlisten: (
|
||||
type: keyof HTMLElementEventMap,
|
||||
listener: () => {},
|
||||
|
Reference in New Issue
Block a user