Skip to content

Commit

Permalink
Document "Date", "Datetime" and "Time" trait types (#1641)
Browse files Browse the repository at this point in the history
* DOC: Document Date, Datetime and Time traits

fixes #1445

	modified:   docs/source/traits_user_manual/defining.rst

* CLN: Address review comments

	modified:   docs/source/traits_user_manual/defining.rst
  • Loading branch information
Poruri Sai Rahul committed May 10, 2022
1 parent d056140 commit 9af04c7
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/source/traits_user_manual/defining.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,13 +261,13 @@ trait cannot be used as a simple name, it is omitted from the Name column of
the table.

.. index:: Any(), Array(), Button(), Callable(), CArray(), Code()
.. index:: CSet(), Constant(), Dict()
.. index:: CSet(), Constant(), Date(), Datetime(), Dict()
.. index:: Directory(), Disallow, Either(), Enum()
.. index:: Event(), Expression(), false, File()
.. index:: Instance(), List(), Method(), Module()
.. index:: Password(), Property(), Python()
.. index:: PythonValue(), Range(), ReadOnly(), Regex()
.. index:: Set() String(), This,
.. index:: Set() String(), This, Time()
.. index:: ToolbarButton(), true, Tuple(), Type()
.. index:: undefined, UUID(), ValidatedTuple(), WeakRef()

Expand All @@ -280,7 +280,7 @@ the table.
+==================+==========================================================+
| Any | Any( [*default_value* = None, \*, |
| | *factory* = None, *args* = (), *kw* = {}, |
| | \*\*\ *metadata* ) |
| | \*\*\ *metadata*] ) |
+------------------+----------------------------------------------------------+
| Array | Array( [*dtype* = None, *shape* = None, *value* = None, |
| | \*\*\ *metadata*] ) |
Expand All @@ -306,6 +306,13 @@ the table.
+------------------+----------------------------------------------------------+
| Constant | Constant( *value*\ [, \*\*\ *metadata*] ) |
+------------------+----------------------------------------------------------+
| Date | Date( *value*\ [, *default_value* = None, |
| | *allow_datetime* = None, *allow_none* = None, |
| | \*\*\ *metadata*] ) |
+------------------+----------------------------------------------------------+
| Datetime | Datetime( *value*\ [, *default_value* = None, |
| | *allow_none* = None, \*\*\ *metadata*]) |
+------------------+----------------------------------------------------------+
| Dict | Dict( [*key_trait* = None, *value_trait* = None, |
| | *value* = None, *items* = True, \*\*\ *metadata*] ) |
+------------------+----------------------------------------------------------+
Expand Down Expand Up @@ -386,6 +393,9 @@ the table.
+------------------+----------------------------------------------------------+
| This | n/a |
+------------------+----------------------------------------------------------+
| Time | Time( *value*\ [, *default_value* = None, |
| | *allow_none* = None, \*\*\ *metadata*]) |
+------------------+----------------------------------------------------------+
| ToolbarButton | ToolbarButton( [*label* = '', *image* = None, *style* = |
| | 'toolbar', *orientation* = 'vertical', *width_padding* = |
| | 2, *height_padding* = 2, \*\*\ *metadata*] ) |
Expand Down

0 comments on commit 9af04c7

Please sign in to comment.