EditTable¶
Base class: Table
Describe an editable table. Example:
table = EditTable(
auto__model=Album,
columns__name__field__include=True,
)
Refinable members¶
action_class
¶
Type: Type[iommi.action.Action]
actions
¶
Type: Dict[str, iommi.action.Action]
actions_below
(evaluated)¶
Type: bool
Default: False
actions_template
(evaluated)¶
Type: Union[str, iommi._web_compat.Template]
Default: iommi/form/actions.html
after
(evaluated)¶
Type: Union[int, str]
See after
assets
¶
Type: Namespace
See assets
attrs
(evaluated)¶
dict of strings to string/callable of HTML attributes to apply to the table
Type: Attrs
See attributes
auto
¶
Type: TableAutoConfig
See auto
bulk
(evaluated)¶
Type: Optional[iommi.form.Form]
bulk_container
¶
Type: Fragment
bulk_exclude
(evaluated)¶
exclude filters to apply to the QuerySet
before performing the bulk operation
Type: Namespace
Default: {}
bulk_filter
(evaluated)¶
filters to apply to the QuerySet
before performing the bulk operation
Type: Namespace
Default: {}
cell
(evaluated)¶
Type: CellConfig
cells_class
¶
Type: Type[iommi.table.Cells]
columns
¶
(use this only when not using the declarative style) a list of Column objects
Type: Dict[str, iommi.table.Column]
container
(evaluated)¶
Type: Fragment
create_form
¶
Type: Form
default_sort_order
¶
edit_actions
¶
Type: Dict[str, iommi.action.Action]
edit_form
¶
Type: Form
empty_message
(evaluated)¶
Type: str
- Cookbook:
endpoints
¶
Type: Namespace
See endpoints
extra
¶
Type: Dict[str, Any]
See extra
extra_evaluated
¶
Type: Dict[str, Any]
See extra
extra_params
¶
See extra_params
form_class
¶
Type: Type[iommi.form.Form]
h_tag
(evaluated)¶
Type: Union[iommi.fragment.Fragment, str]
See title
header
¶
Default: Namespace()
include
(evaluated)¶
Type: bool
See include
invalid_form_message
(evaluated)¶
Type: str
iommi_style
¶
Type: str
See iommi_style
member_class
¶
model
(evaluated)¶
Type: Type[django.db.models.base.Model]
outer
(evaluated)¶
Type: Fragment
page_class
¶
Type: Type[iommi.page.Page]
page_size
(evaluated)¶
Type: int
Default: 16
- Cookbook:
parent_form
¶
Type: Optional[iommi.form.Form]
parts
¶
Type: Namespace
post_bulk_edit
¶
preprocess_row
¶
- Cookbook:
preprocess_row_for_create
¶
preprocess_rows
¶
- Cookbook:
query
¶
query_class
¶
Type: Type[iommi.query.Query]
query_from_indexes
¶
Type: bool
row
(evaluated)¶
Type: RowConfig
row_group_class
¶
Type: Type[iommi.table.RowGroup]
rows
(evaluated)¶
a list or QuerySet of objects
- Cookbook:
sortable
(evaluated)¶
set this to False
to turn off sorting for all columns
Type: bool
Default: True
sorter
¶
superheader
¶
Type: Namespace
table_tag_wrapper
(evaluated)¶
Type: Fragment
tag
(evaluated)¶
Type: str
- Default:
table
See tag
tbody
(evaluated)¶
Type: Fragment
template
(evaluated)¶
Type: Union[str, iommi._web_compat.Template]
- Default:
iommi/table/table.html
See template
title
(evaluated)¶
Type: str
See title
Shortcuts¶
EditTable.div
¶
Defaults¶
tag
div
tbody__tag
div
cell__tag
None
row__tag
div
header__template
None
Methods¶
cells_for_rows_for_create
¶
Yield a Cells instance for each create row sent from the client.