FIXED : #292 : Update elements.rst

This commit is contained in:
Progi1984 2014-07-09 08:51:18 +02:00
parent a23ff4de2f
commit 61406af166
2 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ This release added form fields (textinput, checkbox, and dropdown), drawing shap
### Miscellaneous
- Docs: Add known issue on `README` about requirement for temporary folder to be writable and update `samples/index.php` for this requirement check - @ivanlanin GH-238
- Docs: Correct elements.rst about Line - @chrissharkman GH-292
- PclZip: Remove temporary file after used - @andrew-kzoo GH-265
- Autoloader: Add the ability to set the autoloader options - @bskrtich GH-267
- Element: Refactor elements to move set relation Id from container to element - @ivanlanin

View File

@ -404,13 +404,13 @@ Line elements can be added to sections by using ``addLine``.
.. code-block:: php
$linestyle = array('weight' => 1, 'width' => 100, 'height' => 0, 'color' => 635552);
$linestyle = array('weight' => 1, 'width' => 100, 'height' => 0, 'color' => '#b2a68b');
$section->addLine($lineStyle)
Available line style attributes:
- ``weight`` Line width in twips
- ``color`` Defines the color of stroke
- ``color`` Defines the color of stroke. The hex value must be introduced with #.
- ``dash`` Line types: dash, rounddot, squaredot, dashdot, longdash, longdashdot, longdashdotdot
- ``beginArrow`` Start type of arrow: block, open, classic, diamond, oval
- ``endArrow`` End type of arrow: block, open, classic, diamond, ovel