本文整理汇总了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);
}