You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/dev-oop-classes.rst
+83Lines changed: 83 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -471,3 +471,86 @@ button-specific actions in a modular and object-oriented way.
471
471
472
472
4. EventListenerClick Method:
473
473
Handles the click event by invoking the callback function (``CallbackFunction``) on the CallbackObject with the provided arguments (``CallbackArguments``).
474
+
475
+
22.7. sysBaseDOMElement
476
+
-----------------------
477
+
478
+
Defined in ``sysBaseDOMElement.js``, which defines a base system object for handling DOM elements:
479
+
480
+
22.7.1. Key Methods and Their Purpose
481
+
*************************************
482
+
483
+
1. createDOMElement:
484
+
Creates a new DOM element based on the DOMType property and assigns it an ID.
485
+
486
+
2. setDOMAttribute:
487
+
Sets a specific attribute and its value for the DOM element.
488
+
489
+
3. appendDOMParentElement:
490
+
Appends the DOM element to either the body or a specified parent element.
491
+
492
+
4. removeDOMParentElement:
493
+
Removes the DOM element from its parent element (or body if no parent is defined).
494
+
495
+
5. removeDOMElement:
496
+
Deletes the DOM element from the document.
497
+
498
+
6. setDOMElementValue:
499
+
Updates the inner HTML of the DOM element based on the DOMValue property.
500
+
501
+
7. setDOMElementStyle:
502
+
Sets the CSS class of the DOM element using the DOMStyle property.
503
+
504
+
8. setDOMElementStyleAttributes:
505
+
Configures specific style attributes (e.g., top, left, width, etc.) for the DOM element.
506
+
507
+
9. setDOMElementZIndex:
508
+
Sets the z-index style property for the DOM element.
509
+
510
+
10.setDOMAttributes:
511
+
Applies multiple attributes to the DOM element based on the DOMAttributes property.
512
+
513
+
11.addDOMElementStyle:
514
+
Adds one or more CSS classes to the DOM element.
515
+
516
+
12.removeDOMElementStyle:
517
+
Removes specific CSS classes from the DOM element.
518
+
519
+
13.checkDOMHasStyle:
520
+
Checks if the DOM element has a specific CSS class.
521
+
522
+
14.getDOMStyleClasses:
523
+
Retrieves all CSS classes assigned to the DOM element.
524
+
525
+
15.setDOMStyleClasses:
526
+
Sets the CSS classes for the DOM element, replacing existing ones.
527
+
528
+
16.checkDOMElementExists:
529
+
Verifies if a DOM element with a specific ID exists in the document.
530
+
531
+
17.setDOMVisibleState:
532
+
Toggles the visibility of the DOM element between visible and hidden.
533
+
534
+
18.switchDOMVisibleState:
535
+
Switches the visibility state of the DOM element (e.g., from visible to hidden).
536
+
537
+
19.getDOMVisibleState:
538
+
Retrieves the current visibility state of the DOM element.
539
+
540
+
20.enableDOMElement:
541
+
Enables the DOM element (e.g., removes the disabled attribute).
542
+
543
+
21.disableDOMElement:
544
+
Disables the DOM element (e.g., sets the disabled attribute).
545
+
546
+
22.getDOMValue:
547
+
Retrieves the inner HTML content of the DOM element.
548
+
549
+
23.DOMaddEventListener:
550
+
Adds an event listener to the DOM element for a specified event type.
551
+
552
+
24.getDOMelement:
553
+
Retrieves the DOM element itself.
554
+
555
+
25.getElement:
556
+
Helper method to fetch the DOM element using its ID.
0 commit comments