2.0.9 • Published 7 days ago

brandup-ui-ajax v2.0.9

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
7 days ago

brandup-ui-ajax

Методы для простой работы с AJAX запросами.

ajaxRequest({
    url?: string;
    urlParams?: { [key: string]: string };
    method?: AJAXMethod;
    timeout?: number;
    headers?: { [key: string]: string };
    type?: AJAXReqestType;
    data?: string | FormData | object | File;
    success?: ajaxDelegate;
    abort?: abortDelegate;
    disableCache?: boolean;
    state?: any;
});

Очередь AJAX запросов

const queue = new AjaxQueue();
queue.push({ request options });

class AjaxQueue {
    push(options: AjaxRequest): void;
    reset(abortCurrentRequest = false): void;
    destroy(): void;
}
2.0.9

7 days ago

2.0.8

2 months ago

2.0.7

1 year ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.2

2 years ago