tiny-essentials
Version:
Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.
39 lines (28 loc) β’ 1.34 kB
Markdown
### β¨ New: `TinyTextarea`
Say hello to **TinyTextarea** β a lightweight utility class that turns your boring `<textarea>` into a smooth, self-resizing input box.
**Key features:**
* πͺ Auto-resizes as the user types, up to a maximum number of rows
* π Prevents scrollbars until absolutely necessary
* β Supports extra height padding
* π’ Emits `onResize` and `onInput` events in real-time
* π§Ό Includes full lifecycle management (refresh + destroy)
* π Exposes computed properties like line height, max rows, current size, and more
---
### π Deprecations: `TinySmartScroller` status methods
The following status-checking methods in `TinySmartScroller` are now **deprecated**:
Deprecated aliases:
* `isUserAtCustomBottom()` β use `isAtCustomBottom()`
* `isUserAtCustomTop()` β use `isAtCustomTop()`
* `isUserAtBottom()` β use `isAtBottom()`
* `isUserAtTop()` β use `isAtTop()`
Weβre consolidating method names to reduce redundancy and promote a cleaner API.
The following internal flags will remain accessible via the non-deprecated equivalents:
* `isAtTop()`
* `isAtBottom()`
* `isAtCustomTop()`
* `isAtCustomBottom()`
* `isPastAtTop()`
* `isPastAtBottom()`
* `isPastAtCustomTop()`
* `isPastAtCustomBottom()`
**Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.20.2...1.20.3