Component extension:
SYS. UI. Control Base class:
Attribute Table:
| Attribute |
Description |
| ID |
Obtains or sets the control identifier. |
| Element |
Obtain the domelement associated with the control. |
| Parent |
Obtains or sets the parent control of the control. |
| Visibilitymode |
Obtains or sets the display mode when the control is hidden. The enumerated values are as follows:
SYS. UI. visibilitymode. collapse: indicates that the control does not occupy page space when hidden.
SYS. UI. visibilitymode. Hidden: indicates that the control remains in its position when hidden. |
| Visible |
Sets or gets a bool type, indicating whether the control is visible |
Common Methods:
| Method |
Description |
| Addcssclass (classname) |
Add the specified CSS class to the control. |
| Removecssclass (classname) |
Removes an existing CSS class from the control. |
| Togglecssclass (classname) |
If cssclass is not specified for this control, it is added. If yes, it is removed. |
| Onbubbleevnet (source, argS) |
Process the bubble events generated by the Child control of the control. |
| Raisebubbleevent (source, argS) |
The onbubbleevent method of all parent controls of the control is triggered. |
Enhance Dom operations
SYS. UI. domelement (37)
SYS. UI. domevent (38)
SYS. UI. bounds:
SYS. UI. Key:
SYS. UI. mousebutton:
SYS. UI. Point:
Http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys.UI/default.aspx
SYS. Debug: Used to output debugging information.
Http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys/DebugClass/default.aspx
As JavaScript writing grows, maintenance becomes more difficult. Therefore, it can be written to a separate JS file and then introduced to the. js file through scriptmanager.
Note: When writing a. js file, you must add the following line at the end and end of the script file:
If (typeof (sys )! = 'Undefined') SYS. application. policyscriptloaded ();
The sending method is used to notify the Ajax client when the script resource is successfully loaded to the client. When the Ajax client is running, initialization can be performed smoothly only after it receives a notification that all the scripts imported through scriptmanager have been loaded.ProgramRun.