Content - News Menu - Ressources Menu - Sitemap - Share your code - Code library - Reference
Formidable is part of the TYPO3 Project and is supported by Ameos
| path | data type | req | default | uobj | description |
|---|---|---|---|---|---|
| all |
This control has applied all the common properties of renderlet. See renderlet:* section for the complete list of common properties to use. | ||||
| mode | string | div |
The renderlet:BOX renders any HTML tag. The tag-name is defined by /mode. By default, it will be a <div> tag, but it can be whatever you need, like a <span>, <p>, etc. Example, with no /mode specified:
This will be rendered as:
Example, with /mode=span:
This will be rendered as:
/mode=inline: If you need a BOX that renders only it's content, you have to define the special mode inline. Please note that, in that case, Formidable is not able to manipulate the generated HTML at javascript-level, as no HTML tag surrounds your content. | ||
| html | string | X |
Value that will be displayed inside the box. If you define /childs on the renderlet:BOX, you don't have to provide any /html content. | ||
| childs | collection of renderlets |
The BOX may be considered as a container of other renderlets. When that's the case, these renderlets are the childs of the box. Childs on renderlet:BOX allow for nesting elements inside your application. The need to nest elements might reflect a HTML-design concern, or an application-logic-concern, or whatsoever. You decide. Example:
When defining childs, a BOX may also be templated to layout the display of it's childs. Example:
| |||
| hasData | boolean | false | X |
Deprecated. Informs Formidable that your BOX may carry a postable value. | |
| draggable/ | |||||
| draggable/use | boolean | false |
If TRUE, the BOX will be draggable. To enable the drag'n'drop features, you have to declare /meta/libs=dragdrop. Example of draggable BOX:
| ||
| draggable/constraint | string |
One of
If horizontal is given, the BOX will be draggable only on the x axis. If vertical, it will be draggable only on the y axis. If none given, the dragging will not be constrained. | |||
| draggable/revert | boolean | false | If TRUE, the BOX will return to it's initial position when dragging is over. | ||
| draggable/handle | string; renderlet name |
The absolute name of another renderlet within the current application. If given, the BOX will be draggable, but only by this handle. Example:
| |||
| droppable/ | |||||
| droppable/use | boolean | false |
If TRUE, the other draggable BOX renderlets will be able to drop on this one. To enable the drag'n'drop features, you have to declare /meta/libs=dragdrop. Example of droppable BOX:
| ||
| droppable/accept | string; css-class |
Set accept to a string describing a CSS class. The droppable will only accept draggables that has this CSS class. | |||
| droppable/hoverClass | string; css-class | The name of a CSS class that will be added to element while the droppable is active (has an acceptable draggable hovering over it). | |||
| onDragDrop | event | An event that will be fired when an acceptable draggable is dropped on this box. | |||
| onDragHover | event | An event that will be fired when an acceptable draggable is hovered on this box. | |||
Provided by Ameos