05-07-2020, 02:19 PM
Hey guys,
In 4.8 ButtonNewWdg was expanded to handle narrow view ports (ie. mobile) for the TableLayoutWdg. A 'collapsible_btn' subwidget is added as an attribute, so that on a narrow viewport, the Table shelf buttons disappear and are replaced with a dropdown menu with menu items.
There is unfinished business here because the implementation causes shelf view's with ButtonNewWdg behavior to not properly collapse. For example,
with a custom layout behavior for "my_behavior_class" will not attach the behavior to the menu button that appears in smaller view ports.
I propose an "action_class" so that is added to both the hit wdg and the collapsible menu item.
https://github.com/Southpaw-TACTIC/TACTIC/pull/1347
The intention of the implementation was so that none of the buttons for the table layout had to be re-written. However, the implementation needs to be extended for custom layout shelf buttons.
Let me know what you think.
Best,
Celton
In 4.8 ButtonNewWdg was expanded to handle narrow view ports (ie. mobile) for the TableLayoutWdg. A 'collapsible_btn' subwidget is added as an attribute, so that on a narrow viewport, the Table shelf buttons disappear and are replaced with a dropdown menu with menu items.
There is unfinished business here because the implementation causes shelf view's with ButtonNewWdg behavior to not properly collapse. For example,
Code:
<div class="my_behavior_class>
<element>
<display class="tactic.ui.widget.ButtonNewWdg">
<title>Add new with custom form</title>
<icon>FA_PLUS</icon>
</display>
</element>
</div>
with a custom layout behavior for "my_behavior_class" will not attach the behavior to the menu button that appears in smaller view ports.
I propose an "action_class" so that is added to both the hit wdg and the collapsible menu item.
https://github.com/Southpaw-TACTIC/TACTIC/pull/1347
Code:
<element>
<display class="tactic.ui.widget.ButtonNewWdg">
<title>Add new with custom form</title>
<icon>FA_PLUS</icon>
<action_class>my_behavior_class</action_class>
</display>
</element>
The intention of the implementation was so that none of the buttons for the table layout had to be re-written. However, the implementation needs to be extended for custom layout shelf buttons.
Let me know what you think.
Best,
Celton