Libraries¶
This section enables the inclusion of additional resources, such as JavaScript files, stylesheets, or fonts, into the Emakin application.
For instance, if there is a requirement to utilize a third-party jQuery plugin or a JavaScript-based library, it can be added to the Libraries section. Once included, these resources become readily available for use within forms or scripts throughout the application.
The content of JavaScript or CSS files can be directly defined within the content field, or an external link to the resource can be provided. When referencing external links, it is imperative to ensure that all users have access to the specified URL.
Details¶
The following properties can be configured for each library:
-
Is Enabled?: This boolean setting controls whether the library is active. If disabled, the library will not be included in the application's pages.
-
Name: A descriptive name for the library. This name is used solely for identification and descriptive purposes within the administration interface.
-
Path: The URL of the library file. This can be an externally referenced URL or a URL pointing to a file that has been uploaded directly to Emakin.
-
Type: Specifies the type of resource being included (e.g.,
Javascript
,CSS
,Font
). -
Render Type: Determines whether the library is intended for client-side execution, server-side execution, or both.
- Client Side: When selected, the library is included in the application's HTML content, making its functionalities accessible from any client-side JavaScript code.
- Server Side: When selected, the library is made available for use within server-side scripts. If this option is chosen, including the library content directly within the
Content
field is highly recommended over referencing an external script, to ensure consistent availability.