本文整理匯總了PHP中QButton::GetModelConnectorParams方法的典型用法代碼示例。如果您正苦於以下問題:PHP QButton::GetModelConnectorParams方法的具體用法?PHP QButton::GetModelConnectorParams怎麽用?PHP QButton::GetModelConnectorParams使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類QButton
的用法示例。
在下文中一共展示了QButton::GetModelConnectorParams方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetModelConnectorParams
/**
* If this control is attachable to a codegenerated control in a ModelConnector, this function will be
* used by the ModelConnector designer dialog to display a list of options for the control.
* @return QModelConnectorParam[]
**/
public static function GetModelConnectorParams()
{
return array_merge(parent::GetModelConnectorParams(), array(new QModelConnectorParam(get_called_class(), 'Disabled', 'Disables the button if set to true.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Label', 'Text to show in the button. When not specified (null), the elementsHTML content is used, or its value attribute if the element is aninput element of type submit or reset, or the HTML content of theassociated label element if the element is an input of type radio orcheckbox.', QType::String), new QModelConnectorParam(get_called_class(), 'JqText', 'Whether to show the label. When set to false no text will bedisplayed, but the icons option must be enabled, otherwise the textoption will be ignored.', QType::Boolean)));
}