Source code for timApp.document.areainfo
from dataclasses import dataclass
from typing import Optional
[docs]@dataclass
class AreaStart(AreaBoundary):
is_collapsed: bool | None # If None, not a collapsible area
@property
def area_class_str(self) -> str:
return "area collapsed" if self.is_collapsed else "area"
@property
def collapse_state(self) -> str:
return "areaexpand" if self.is_collapsed else "areacollapse"