You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/outgoing/view_cells.rst
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ You can also create a controlled cell via a built in command from the CLI. The c
119
119
Using a Different View
120
120
======================
121
121
122
-
You can specify a custom view name by setting the ``view`` property in the class. The view will be located like any view would be normally:
122
+
You can specify a custom view filepath by setting the ``view`` property in the class. The view will be located like any view would be normally:
123
123
124
124
.. literalinclude:: view_cells/011.php
125
125
@@ -145,16 +145,20 @@ If you need to perform additional logic for one or more properties you can use c
145
145
146
146
.. important:: You can't set properties that are declared as private during cell
147
147
initialization.
148
+
Call ``getDataProperty()``, ``getViewProperty()`` methods are not available - they are used for internal processes.
148
149
149
150
Presentation Methods
150
151
====================
151
152
152
153
Sometimes you need to perform additional logic for the view, but you don't want to pass it as a parameter. You can implement a method that will be called from within the cell's view itself. This can help the readability of your views:
154
+
You may have noticed that not only method calls are allowed in the template: the entire Сell object with public properties is available.
0 commit comments