本文整理匯總了PHP中QButton::RenderWithError方法的典型用法代碼示例。如果您正苦於以下問題:PHP QButton::RenderWithError方法的具體用法?PHP QButton::RenderWithError怎麽用?PHP QButton::RenderWithError使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QButton
的用法示例。
在下文中一共展示了QButton::RenderWithError方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: RemoveAssetModelsColumn_Render
public function RemoveAssetModelsColumn_Render(AssetCustomFieldAssetModel $objAssetCustomFieldAssetModel)
{
$strControlId = 'btnAssetModelRemove' . $objAssetCustomFieldAssetModel->AssetModelId;
$btnAssetModelRemove = new QButton($this->dtgAssetModels);
$btnAssetModelRemove->Text = 'Remove';
$btnAssetModelRemove->ActionParameter = $objAssetCustomFieldAssetModel->AssetModelId;
$btnAssetModelRemove->AddAction(new QClickEvent(), new QAjaxAction('btnAssetModelRemove_Click'));
$btnAssetModelRemove->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnAssetModelRemove_Click'));
$btnAssetModelRemove->AddAction(new QEnterKeyEvent(), new QTerminateAction());
$btnAssetModelRemove->CausesValidation = false;
return $btnAssetModelRemove->RenderWithError(false);
}
示例2: RemoveColumn_Render
public function RemoveColumn_Render(CustomFieldValue $objCustomFieldValue)
{
$strControlId = 'btnRemove' . $objCustomFieldValue->CustomFieldValueId;
$btnRemove = $this->GetControl($strControlId);
if (!$btnRemove) {
// Create the Remove button for this row in the DataGrid
// Use ActionParameter to specify the ID of the asset
$btnRemove = new QButton($this->dtgValue, $strControlId);
$btnRemove->Text = 'Remove';
$btnRemove->ActionParameter = $objCustomFieldValue->CustomFieldValueId;
$btnRemove->AddAction(new QClickEvent(), new QAjaxAction('btnRemove_Click'));
$btnRemove->AddAction(new QEnterKeyEvent(), new QAjaxAction('btnRemove_Click'));
$btnRemove->AddAction(new QEnterKeyEvent(), new QTerminateAction());
$btnRemove->CausesValidation = false;
}
return $btnRemove->RenderWithError(false);
}