/** * There is a little bit of a conundrum here. If there is text assigned to the checkbox, we wrap * the checkbox in a label. However, in this situation, its unclear what to do with the class and style * attributes that are for the checkbox. We are going to let the developer use the label styler to make * it clear what their intentions are. * @return string */ protected function RenderLabelAttributes() { $objStyler = new QTagStyler(); $attributes = $this->GetHtmlAttributes(null, null, ['title']); // copy tooltip to wrapping label $objStyler->SetAttributes($attributes); $objStyler->Override($this->getCheckLabelStyler()); if (!$this->Enabled) { $objStyler->AddCssClass('disabled'); // add the disabled class to the label for styling } if (!$this->Display) { $objStyler->Display = false; } return $objStyler->RenderHtmlAttributes(); }