feat(JavaScript): Updated architecture for TableBasePage object with static row ID attribute attached for adding ID against each row added to DOM
This commit is contained in:
13
templates/components/store/_preview_order_items.html
Normal file
13
templates/components/store/_preview_order_items.html
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
{% with _is_blank_row = (is_blank_row or order_items is not defined or order_items is none or is_blank_row is not defined) %}
|
||||
{% if not _is_blank_row %}
|
||||
{% set str_items = order_items.to_preview_str() %}
|
||||
<div
|
||||
class="{{ model.FLAG_ITEMS }}"
|
||||
{{ model.ATTR_VALUE_CURRENT }}="{{ json_str_items }}"
|
||||
{{ model.ATTR_VALUE_PREVIOUS }}="{{ json_str_items }}"
|
||||
>{{ str_items }}</div>
|
||||
{% else %}
|
||||
<div class="{{ model.FLAG_ITEMS }}" {{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }}></div>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
Reference in New Issue
Block a user