TagName = "div"; $this->ClassList[] = "Disclosure"; } protected function OnInitialize() { $parent = $this->FindParentPage(); if ($parent != null) $parent->Scripts[] = new WebScript("$(PhastStaticPath)/Scripts/Controls/Disclosure.js"); } protected function RenderBeginTag() { if ($this->Expanded) { $this->ClassList[] = "Expanded"; $this->Attributes[] = new WebControlAttribute("data-expanded", "true"); } else { $this->Attributes[] = new WebControlAttribute("data-expanded", "false"); } parent::RenderBeginTag(); } protected function BeforeContent() { echo("
"); echo("