view
****
Use :class:`view` for generate html tags for gride of data. in fact, this command use in two level hierarchy data.
.. code-block:: html
:linenos:
[...]
.. important::
The :class:`view` command inherit from :doc:`renderable` base class.
Attributes:
===========
groupcol :class:`string` :class:`optional` :class:`[##-notaion`
Determine column name in data source that use in grouping data for generate second level. default value for :class:`groupcol` is :class:`prpid`.
.. note::
For see more Information about :class:`[##-notaion`,see :doc:`../[-sharp-sharp-notation`
Example
=======
1# Create simple command
------------------------
.. code-block:: html
:linenos:
@team-name
@fname - @lname
.. include:: /sample-code/sample-data.rst
:start-after: _db_users_start_
:end-before: _db_users_end_
Result is:
.. code-block:: html
:linenos:
-
team-a
- s.alireza - qamsari
- akbar - karimi
-
team-b