diff --git a/CHANGES.rst b/CHANGES.rst index 480c2fe2..a8aeef72 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,9 @@ Changelog Release date: -- +- Add ``safe_columns`` and ``urlize_columns`` parameters to ``render_table`` macro + to support rendering table column as HTML/URL (`#204 `__). + 2.0.1 ----- diff --git a/docs/macros.rst b/docs/macros.rst index d9ae6bb8..99623805 100644 --- a/docs/macros.rst +++ b/docs/macros.rst @@ -129,7 +129,7 @@ API default to ``md``. This will overwrite config ``BOOTSTRAP_BTN_SIZE``. :param form_group_classes: Bootstrap 5 only (``bootstrap5/form.html``). You can use this parameter to change the form group classes, it will read the config ``BOOTSTRAP_FORM_GROUP_CLASSES`` first - (the default value is ``mb-3``) + (the default value is ``mb-3``). .. tip:: See :ref:`button_customization` and :ref:`checkbox_customization` to learn more on customizations. @@ -193,7 +193,7 @@ API :param render_kw: A dictionary, specifying custom attributes for the ``
`` tag. :param form_group_classes: Bootstrap 5 only (``bootstrap5/form.html``). You can use this parameter to change the form group classes, it will - read the config ``BOOTSTRAP_FORM_GROUP_CLASSES`` first (the default value is ``mb-3``) + read the config ``BOOTSTRAP_FORM_GROUP_CLASSES`` first (the default value is ``mb-3``). :param form_inline_classes: Bootstrap 5 only (``bootstrap5/form.html``). You can use this parameter to change the form inline classes, it will read the config ``BOOTSTRAP_FORM_INLINE_CLASSES`` first (the default value is ``row row-cols-lg-auto g-3 align-items-center``). @@ -273,7 +273,7 @@ API :param col_class_default: The default class to apply to the div that represents a column if nothing more specific is said for the div column of the rendered field. :param col_map: A dictionary, mapping field.name to a class definition that should be applied to - the div column that contains the field. For example: ``col_map={'username': 'col-md-2'})`` + the div column that contains the field. For example: ``col_map={'username': 'col-md-2'})``. :param button_style: Set button style for ``SubmitField``. Accept Bootstrap button style name (i.e. primary, secondary, outline-success, etc.), default to ``primary`` (e.g. ``btn-primary``). This will overwrite config ``BOOTSTRAP_BTN_STYLE``. @@ -283,7 +283,7 @@ API ``{'submit': 'success'}``. This will overwrite ``button_style`` and ``BOOTSTRAP_BTN_STYLE``. :param form_group_classes: Bootstrap 5 only (``bootstrap5/form.html``). You can use this parameter to change the form group classes, it will read the config ``BOOTSTRAP_FORM_GROUP_CLASSES`` first - (the default value is ``mb-3``) + (the default value is ``mb-3``). :param form_type: One of ``basic``, ``inline`` or ``horizontal``. See the Bootstrap docs for details on different form layouts. :param horizontal_columns: When using the horizontal layout, layout forms like this. Must be a 3-tuple of @@ -366,7 +366,7 @@ API :param size: Can be 'sm' or 'lg' for smaller/larger pagination. :param args: Additional arguments passed to :func:`~flask.url_for`. If ``endpoint`` is ``None``, uses :attr:`~flask.Request.args` and - :attr:`~flask.Request.view_args` + :attr:`~flask.Request.view_args`. :param fragment: Add URL fragment into link, such as ``#comment``. :param align: The align of the pagination. Can be 'left', 'center' or 'right', default to 'left'. :param kwargs: Extra attributes for the ``