
NOTICE: All information contained herein is, and remains
the property of TechnoCore.
The intellectual and technical concepts contained
herein are proprietary to TechnoCore and dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from TechnoCore.
The ObjTextPanel object is a utility for generating a standard Bootstrap "box" or "panel" component. This is a common UI element used to display content within a bordered container that can have a header, a body, and a footer.
Process(Param1: str, Param2: str, Param3: str, ...)This method constructs the HTML for the panel. The content for the header, body, and footer is passed in as parameters.
Parameters:
Param1 (str): The text to be displayed in the panel's header. If this is an empty string, the header will not be rendered.Param2 (str): The main content to be displayed in the panel's body.Param3 (str): The text to be displayed in the panel's footer. If this is an empty string, the footer will not be rendered.Returns:
Example Usage:
panel = ObjProcessText()
panel_html = panel.Process(
Param1="User Profile",
Param2="This is the main content area where user details would be displayed.",
Param3="Last updated: 2 minutes ago"
)
print(panel_html)
This would output the following HTML:
<div class='box box-primary'>
<div class='box-header'>
<h3 class='box-title'>User Profile</h3>
</div>
<div class='box-body'>
This is the main content area where user details would be displayed.
</div>
<div class='box-footer'>
Last updated: 2 minutes ago
</div>
</div>