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
In many situations, a page consists of standalone submodules that are assembled as a combination of tabs and rows. This can be made easier by extending the API of satin.
In this case module_tabs is a satin module that accepts a list of modules and turns them into tabs on a page. module_rows would turn a list of modules into rows. The advantage of this approach is consistency and the ability for users to define custom higher-level modules to aggregate submodules.
It does introduce an extra layer of nesting which might be annoying, but I think consistency scores higher than the annoyance introduced by a little nesting.
The text was updated successfully, but these errors were encountered:
- text: Engagementrows:
- module:
panel_metric:
id: product_engagement_active_usersplot_type: line
- module:
panel_metric:
id: product_engagement_time_spentplot_type: line
- text: Engagementtabs:
- text: Active Usersmodule:
panel_metric:
id: product_engagement_active_usersplot_type: line
- text: Time Spentmodule:
panel_metric:
id: product_engagement_time_spentplot_type: line
This reduces the extent of nesting and also makes the intent clear that the modules are to be laid out as tabs (or rows). I need to think about how it might reduce flexibility in comparison to the approach outlined previously.
In many situations, a page consists of standalone submodules that are assembled as a combination of tabs and rows. This can be made easier by extending the API of
satin
.In this case
module_tabs
is asatin
module that accepts a list of modules and turns them into tabs on a page.module_rows
would turn a list of modules into rows. The advantage of this approach is consistency and the ability for users to define custom higher-level modules to aggregate submodules.It does introduce an extra layer of nesting which might be annoying, but I think consistency scores higher than the annoyance introduced by a little nesting.
The text was updated successfully, but these errors were encountered: