本文整理汇总了PHP中QControl::GetModelConnectorParams方法的典型用法代码示例。如果您正苦于以下问题:PHP QControl::GetModelConnectorParams方法的具体用法?PHP QControl::GetModelConnectorParams怎么用?PHP QControl::GetModelConnectorParams使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QControl
的用法示例。
在下文中一共展示了QControl::GetModelConnectorParams方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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(), 'Animate', 'Animates to the final size after resizing.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'AnimateEasing', 'Which easing to apply when using the animate option.', QType::String), new QModelConnectorParam(get_called_class(), 'AutoHide', 'Whether the handles should hide when the user is not hovering over theelement.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Delay', 'Tolerance, in milliseconds, for when resizing should start. Ifspecified, resizing will not start until after mouse is moved beyondduration. This can help prevent unintended resizing when clicking onan element.', QType::Integer), new QModelConnectorParam(get_called_class(), 'Disabled', 'Disables the resizable if set to true.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Distance', 'Tolerance, in pixels, for when resizing should start. If specified,resizing will not start until after mouse is moved beyond distance.This can help prevent unintended resizing when clicking on an element.', QType::Integer), new QModelConnectorParam(get_called_class(), 'Ghost', 'If set to true, a semi-transparent helper element is shown forresizing.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Grid', 'Snaps the resizing element to a grid, every x and y pixels. Arrayvalues: [ x, y ].', QType::ArrayType), new QModelConnectorParam(get_called_class(), 'Helper', 'A class name that will be added to a proxy element to outline theresize during the drag of the resize handle. Once the resize iscomplete, the original element is sized.', QType::String), new QModelConnectorParam(get_called_class(), 'MaxHeight', 'The maximum height the resizable should be allowed to resize to.', QType::Integer), new QModelConnectorParam(get_called_class(), 'MaxWidth', 'The maximum width the resizable should be allowed to resize to.', QType::Integer), new QModelConnectorParam(get_called_class(), 'MinHeight', 'The minimum height the resizable should be allowed to resize to.', QType::Integer), new QModelConnectorParam(get_called_class(), 'MinWidth', 'The minimum width the resizable should be allowed to resize to.', QType::Integer)));
}
示例2: GetModelConnectorParams
/**
* Returns an description of the options available to modify by the designer for the code generator.
*
* @return QModelConnectorParam[]
*/
public static function GetModelConnectorParams()
{
return array_merge(parent::GetModelConnectorParams(), array(new QModelConnectorParam(get_called_class(), 'Text', 'Label on checkbox', QType::String), new QModelConnectorParam(get_called_class(), 'TextAlign', 'Left or right alignment of label', QModelConnectorParam::SelectionList, array('QTextAlign::Right' => 'QTextAlign::Right', 'QTextAlign::Left' => 'QTextAlign::Left')), new QModelConnectorParam(get_called_class(), 'HtmlEntities', 'Whether to apply HTML entities on the label', QType::Boolean), new QModelConnectorParam(get_called_class(), 'CssClass', 'The css class(es) to apply to the checkbox and label together', QType::String)));
}
示例3: GetModelConnectorParams
/**
* Returns a description of the options available to modify by the designer for the code generator.
*
* @return QModelConnectorParam[]
*/
public static function GetModelConnectorParams()
{
return array_merge(parent::GetModelConnectorParams(), array(new QModelConnectorParam(QModelConnectorParam::GeneralCategory, 'NoAutoLoad', 'Prevent automatically populating a list type control. Set this if you are doing more complex list loading.', QType::Boolean)));
}
示例4: 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(), 'ActiveClass', 'If specified, the class will be added to the droppable while anacceptable draggable is being dragged.', QType::String), new QModelConnectorParam(get_called_class(), 'AddClasses', 'If set to false, will prevent the ui-droppable class from being added.This may be desired as a performance optimization when calling.droppable() init on hundreds of elements.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Disabled', 'Disables the droppable if set to true.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Greedy', 'By default, when an element is dropped on nested droppables, eachdroppable will receive the element. However, by setting this option totrue, any parent droppables will not receive the element. The dropevent will still bubble normally, but the event.target can be checkedto see which droppable received the draggable element.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'HoverClass', 'If specified, the class will be added to the droppable while anacceptable draggable is being hovered over the droppable.', QType::String), new QModelConnectorParam(get_called_class(), 'Scope', 'Used to group sets of draggable and droppable items, in addition tothe accept option. A draggable with the same scope value as adroppable will be accepted.', QType::String), new QModelConnectorParam(get_called_class(), 'Tolerance', 'Specifies which mode to use for testing whether a draggable ishovering over a droppable. Possible values: * \\"fit\\": Draggable overlaps the droppable entirely. * \\"intersect\\": Draggable overlaps the droppable at least 50% in bothdirections. * \\"pointer\\": Mouse pointer overlaps the droppable. * \\"touch\\": Draggable overlaps the droppable any amount.', QType::String)));
}
示例5: GetModelConnectorParams
/**
* Returns an description of the options available to modify by the designer for the code generator.
*
* @return QModelConnectorParam[]
*/
public static function GetModelConnectorParams()
{
return array_merge(parent::GetModelConnectorParams(), array(new QModelConnectorParam(get_called_class(), 'Columns', 'Width of field', QType::Integer), new QModelConnectorParam(get_called_class(), 'Rows', 'Height of field for multirow field', QType::Integer), new QModelConnectorParam(get_called_class(), 'Format', 'printf format string to use', QType::String), new QModelConnectorParam(get_called_class(), 'Placeholder', 'HTML5 Placeholder attribute', QType::String), new QModelConnectorParam(get_called_class(), 'ReadOnly', 'Editable or not', QType::Boolean), new QModelConnectorParam(get_called_class(), 'TextMode', 'Field type', QModelConnectorParam::SelectionList, array(null => '-', 'QTextMode::Search' => 'Search', 'QTextMode::MultiLine' => 'MultiLine', 'QTextMode::Password' => 'Password', 'QTextMode::SingleLine' => 'SingleLine'))));
}
示例6: 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(), 'AddClasses', 'If set to false, will prevent the ui-draggable class from being added.This may be desired as a performance optimization when calling.draggable() on hundreds of elements.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Axis', 'Constrains dragging to either the horizontal (x) or vertical (y) axis.Possible values: \\"x\\", \\"y\\".', QType::String), new QModelConnectorParam(get_called_class(), 'Cursor', 'The CSS cursor during the drag operation.', QType::String), new QModelConnectorParam(get_called_class(), 'Delay', 'Time in milliseconds after mousedown until dragging should start. Thisoption can be used to prevent unwanted drags when clicking on anelement.', QType::Integer), new QModelConnectorParam(get_called_class(), 'Disabled', 'Disables the draggable if set to true.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'Distance', 'Distance in pixels after mousedown the mouse must move before draggingshould start. This option can be used to prevent unwanted drags whenclicking on an element.', QType::Integer), new QModelConnectorParam(get_called_class(), 'Grid', 'Snaps the dragging helper to a grid, every x and y pixels. The arraymust be of the form [ x, y ].', QType::ArrayType), new QModelConnectorParam(get_called_class(), 'Opacity', 'Opacity for the helper while being dragged.', QType::Integer), new QModelConnectorParam(get_called_class(), 'RefreshPositions', 'If set to true, all droppable positions are calculated on everymousemove. _Caution: This solves issues on highly dynamic pages, butdramatically decreases performance._', QType::Boolean), new QModelConnectorParam(get_called_class(), 'RevertDuration', 'The duration of the revert animation, in milliseconds. Ignored if therevert option is false.', QType::Integer), new QModelConnectorParam(get_called_class(), 'Scope', 'Used to group sets of draggable and droppable items, in addition todroppables accept option. A draggable with the same scope value as adroppable will be accepted by the droppable.', QType::String), new QModelConnectorParam(get_called_class(), 'Scroll', 'If set to true, container auto-scrolls while dragging.', QType::Boolean), new QModelConnectorParam(get_called_class(), 'ScrollSensitivity', 'Distance in pixels from the edge of the viewport after which theviewport should scroll. Distance is relative to pointer, not thedraggable. Ignored if the scroll option is false.', QType::Integer), new QModelConnectorParam(get_called_class(), 'ScrollSpeed', 'The speed at which the window should scroll once the mouse pointergets within the scrollSensitivity distance. Ignored if the scrolloption is false.', QType::Integer), new QModelConnectorParam(get_called_class(), 'SnapMode', 'Determines which edges of snap elements the draggable will snap to.Ignored if the snap option is false. Possible values: \\"inner\\",\\"outer\\", \\"both\\".', QType::String), new QModelConnectorParam(get_called_class(), 'SnapTolerance', 'The distance in pixels from the snap element edges at which snappingshould occur. Ignored if the snap option is false.', QType::Integer), new QModelConnectorParam(get_called_class(), 'ZIndex', 'Z-index for the helper while being dragged.', QType::Integer)));
}