scistag.vislog.visual_log_element_context.VisualLogElementContext¶
- class VisualLogElementContext(builder, closing_code)[source]¶
Bases:
objectDefines a context which helps to dynamically fill advanced components such as HTML tables or divs with content.
This is realized by asap storing their opening statements into the target document such as <table> upon creation and automatically writing the closing statement such as </table> when either the object’s context is left or the
close()method is called explicitly.- Parameters
builder – The builder object with which we write to the log
Methods
Can be called to explicitly finish the current element
Attributes
__dict____doc____module____weakref__list of weak references to the object (if defined)