Steps to reproduce:
I added the following code to widget.view.php
<?php
$powerLabel = new CLabel("Power On/Off", "powerLabel");
$powerLabel->addStyle("margin-left: 10px;");
$powerLabel->addStyle("margin-right: 3px;");
$powerCheckbox = new CInput("checkbox", "powerCheckbox", "on");
$powerCheckbox->setId("powerCheckbox");
$powerDiv = new CDiv([$powerLabel, $powerCheckbox]);
$widgetView = new CWidgetView($data);
$widgetView->addItem($powerDiv);
$widgetView->show();
Result:
See screenshot...
The default check status of powerCheckbox isn't checked.
Expected:
The default check status of powerCheckbox isn checked.
See attached patch file...
|