sc.js is a versatile utility library written in pure JavaScript, designed to simplify common tasks and enhance productivity. With a wide array of methods, sc.js is your go-to solution for handling various operations seamlessly.
- assetsPath: Manage asset paths easily.
- globalImgPath: Set and retrieve global image paths.
- init: Initialize the library.
- isString: Check if a value is a string.
- isNumber: Check if a value is a number.
- isObject: Check if a value is an object.
- isTrue: Check if a value is true.
- isFalse: Check if a value is false.
- isInt: Check if a value is an integer.
- block: Block UI elements.
- unblock: Unblock UI elements.
- openModal: Open a modal dialog.
- sendDataToController: Send data to a controller.
- postData: Post data to a server.
- getData: Retrieve data from a server.
- stringFormat: Format strings.
- extractNumberFromString: Extract numbers from a string.
- isAlphaNumeric: Check if a string is alphanumeric.
- getFileNameFromPath: Get file name from a path.
- getFileNameFromUrl: Get file name from a URL.
- splitUrlBySlash: Split URL by slashes.
- isValid: Validate data.
- isJsonString: Check if a string is a valid JSON string.
- isHtmlString: Check if a string is a valid HTML string.
- formatBytes: Format bytes to a readable format.
- getNow: Get the current date and time.
- getGmt: Get the current GMT time.
- startTimer: Start a timer.
- resetTimer: Reset a timer.
- IdleTimeout: Set idle timeout.
- addAsteriskForRequiredFields: Add an asterisk for required fields.
- setButtonDisabledCountdown: Disable a button with a countdown.
- activateSelectFocus: Activate focus on select elements.
- activateTooltip: Activate tooltips.
- activatePopover: Activate popovers.
- bindExcelButton: Bind an Excel export button.
- getRandomNum: Generate a random number.
- getRandomColor: Generate a random color.
- contains: Check if an array contains a value.
- goUp: Scroll to the top of the page.
- getDatatableLanguage: Get DataTables language settings.
- getDatatableButtonArray: Get DataTables button array.
- bindDatatable: Bind a DataTable.
- localizer: Localize data.
- jsonToList: Convert JSON to a list.
- jsonToTable: Convert JSON to a table.
To get started with sc.js, include the library in your project and start using the methods as needed. Refer to the documentation for detailed usage and examples.
Contributions are welcome! Feel free to submit issues and pull requests to improve the library.
This project is licensed under the MIT License.