UNPKG

@jay-js/system

Version:

A powerful and flexible TypeScript library for UI, state management, lazy loading, routing and managing draggable elements in modern web applications.

19 lines (18 loc) 1.28 kB
/** * The `render` function takes target element, data, and optional insert options to render content in * the specified location on a web page. * @param {HTMLElement | string | null} target - The `target` parameter in the `render` function can be * either an HTMLElement, a string representing a selector, or null. It is the element to which the * data will be rendered. * @param {Node | string | (Node | string)[]} data - The `data` parameter in the `render` function can * accept a single Node or string, or an array of Nodes or strings. * @param options - The `options` parameter in the `render` function allows you to specify how the data * should be inserted into the target element. It has a property `insert` which can have two possible * values: * @returns The `render` function returns nothing (`undefined`) explicitly, as there is no `return` * statement with a value specified in the function. The function performs operations on the `target` * element based on the provided `data` and `options`, but it does not return any specific value. */ export declare function render(target: HTMLElement | string | null, data: Node | string | HTMLElement | (Node | string | HTMLElement)[] | null | undefined, options?: { insert?: "append" | "prepend"; }): void;