mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 23:20:35 -06:00
docs: update fillAvailableHeight example for jQuery usage
- Modified the documentation comment for the fillAvailableHeight function in BodyInlineJS.php to specify that it must be used within a jQuery ready function. - Ensured clarity in the example usage to improve developer understanding and implementation.
This commit is contained in:
@@ -475,12 +475,15 @@ function nchanFocusStop(banner=true) {
|
||||
*
|
||||
* @example
|
||||
* // Custom configuration with additional elements
|
||||
* fillAvailableHeight({
|
||||
* targetElementSelector: '.my-content',
|
||||
* elementSelectorsForHeight: ['.my-controls', '.my-actions'],
|
||||
* elementSelectorsForSpacing: ['.my-content'],
|
||||
* minHeight: 500,
|
||||
* manualSpacingOffset: 20
|
||||
* // MUST BE USED IN JQUERY ON READY
|
||||
* $(function() { // or $(document).ready(function() {
|
||||
* fillAvailableHeight({
|
||||
* targetElementSelector: '.my-content',
|
||||
* elementSelectorsForHeight: ['.my-controls', '.my-actions'],
|
||||
* elementSelectorsForSpacing: ['.my-content'],
|
||||
* minHeight: 500,
|
||||
* manualSpacingOffset: 20
|
||||
* });
|
||||
* });
|
||||
*/
|
||||
function fillAvailableHeight(params = { // default params
|
||||
|
||||
Reference in New Issue
Block a user