Skip to content

Commit

Permalink
Merge pull request Dashticz#726 from HansieNL/patch-1
Browse files Browse the repository at this point in the history
Update clock.rst
  • Loading branch information
lokonli authored Dec 23, 2020
2 parents 23491c1 + 821fb6b commit 95b7750
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions docs/blocks/specials/clock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ This is the standard clock. You can add this clock to a column with::

columns[1]['blocks'] = ['basicclock'];

Or define a custom block as follows::

blocks['myclock'] = {
type: 'basicclock'
}
columns[1]['blocks'] = ['myclock'];


Block parameter
^^^^^^^^^^^^^^^
.. list-table::
Expand All @@ -141,8 +150,8 @@ Block parameter
- | block width
| ``1 .. 12``: (default ``12``).
* - size
- | Size of the stationclock in pixels. The default size of the station clock is the column width.
| ``200`` The clock will have a width and height of 200 pixels
- | Size of the basic clock in pixels. The default size of the basic clock is the column width.
| ``200`` The clock will have a width of 200 pixels
* - scale
- | Scale factor for the width of the clock. Should be smaller than 1
| ``0.75``: Scales the clock down to 75% (default ``1`` = 100%).
Expand All @@ -156,6 +165,14 @@ You can add the flipclock to a column with::

columns[1]['blocks'] = ['flipclock'];

Or define a custom block as follows::

blocks['myclock'] = {
type: 'flipclock'
}
columns[1]['blocks'] = ['myclock'];

Block parameter
^^^^^^^^^^^^^^^
.. list-table::
Expand All @@ -169,8 +186,8 @@ Block parameter
- | block width
| ``1 .. 12``: (default ``12``).
* - size
- | Size of the stationclock in pixels. The default size of the station clock is the column width.
| ``200`` The clock will have a width and height of 200 pixels
- | Size of the flipclock in pixels. The default size of the flip clock is the column width.
| ``200`` The clock will have a width of 200 pixels
* - scale
- | Scale factor for the width of the clock. Should be smaller than 1
| ``0.75``: Scales the clock down to 75% (default ``1`` = 100%).
Expand Down Expand Up @@ -215,8 +232,8 @@ Block parameter
- | block width
| ``1 .. 12``: (default ``12``).
* - size
- | Size of the stationclock in pixels. The default size of the station clock is the column width.
| ``200`` The clock will have a width and height of 200 pixels
- | Size of the Hayman clock in pixels. The default size of the Hayman clock is the column width.
| ``200`` The clock will have a width of 200 pixels
* - scale
- | Scale factor for the width of the clock. Should be smaller than 1
| ``0.75``: Scales the clock down to 75% (default ``1`` = 100%).
Expand Down

0 comments on commit 95b7750

Please sign in to comment.