Skip to content

Commit

Permalink
[Feature] Examples for Table wizard configurations from styleguide (#384
Browse files Browse the repository at this point in the history
)

refs TYPO3-CMS/styleguide#205

Co-authored-by: lina.wolf <lwolf@w-commerce.de>
  • Loading branch information
linawolf and linawolf committed Apr 14, 2021
1 parent 23c0f45 commit 8ed7a7a
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 23 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
27 changes: 9 additions & 18 deletions Documentation/ColumnsConfig/Type/Text/Properties/TableWizard.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,23 @@ tableWizard

Note the control button is only displayed after a new record has been saved the first time.

.. figure:: /ColumnsConfig/Type/Text/Images/TableWizard1.png
:alt: The table wizard
:class: with-shadow

The table wizard
.. include:: /Includes/Images/Styleguide/RstIncludes/TableWizard.rst.txt

Available options:

xmlOutput
(boolean) If set to true, the output from the wizard is XML instead of the TypoScript table configuration code.
Default false.
(boolean) If set to true, the output from the wizard is XML instead of the
TypoScript table configuration code. This variable still needs binding
to the wizard parameters. Otherwise only an empty wizard will be rendered.
Default false.

numNewRows
(integer) Setting the number of blank rows that will be added in the bottom of the table when the
plus-icon is pressed. The default is 5, the range is 1-50.

Example overriding defaults of a :code:`renderType='textTable'` element:
Example
=======

.. code-block:: php
Overriding defaults of a :code:`renderType='textTable'` element:

'bodytext' => [
'config' => [
'fieldControl' => [
'options' => [
'numNewRows' => 3,
],
],
],
],
.. include:: /Includes/Snippets/Styleguide/RstIncludes/Text21.rst.txt
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. Manual screenshot:
.. figure:: /Includes/Images/Styleguide/ManualScreenshots/TableWizard.png
:alt: The table wizard
:class: with-shadow

The table wizard
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. Automatic screenshot: Remove this line if you wand to manually change this file
.. literalinclude:: /Includes/Snippets/Styleguide/Sources/tx_styleguide_elements_basic.php
:language: php
:start-at: start input_1
:end-before: end input_1
:lines: 2-

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:language: php
:start-at: start slug_1
:end-before: end slug_1
:lines: 2-
:lines: 2-

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:language: php
:start-at: start slug_2
:end-before: end slug_2
:lines: 2-
:lines: 2-

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:language: php
:start-at: start slug_3
:end-before: end slug_3
:lines: 2-
:lines: 2-

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:language: php
:start-at: start slug_4
:end-before: end slug_4
:lines: 2-
:lines: 2-

Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
:language: php
:start-at: start slug_5
:end-before: end slug_5
:lines: 2-
:lines: 2-

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. Automatic screenshot: Remove this line if you wand to manually change this file
.. literalinclude:: /Includes/Snippets/Styleguide/Sources/tx_styleguide_elements_basic.php
:language: php
:start-at: start text_21
:end-before: end text_21
:lines: 2-

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. Automatic screenshot: Remove this line if you wand to manually change this file
.. literalinclude:: /Includes/Snippets/Styleguide/Sources/tx_styleguide_elements_basic.php
:language: php
:start-at: start input_1
:end-before: end input_1
:lines: 2-

4 changes: 4 additions & 0 deletions Scripts/GenerateScreenshots/Config.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@
"text_19",
{
"field": "text_20"
},
{
"field": "text_21",
"description": "The table wizard"
}
]
},
Expand Down

0 comments on commit 8ed7a7a

Please sign in to comment.