4.8 ButtonNewWdg behaviors - Printable Version +- TACTIC Open Source (http://forum.southpawtech.com) +-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3) +--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4) +--- Thread: 4.8 ButtonNewWdg behaviors (/showthread.php?tid=109) |
4.8 ButtonNewWdg behaviors - Celton McGrath - 05-07-2020 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, Code: <div class="my_behavior_class> 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> 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 RE: 4.8 ButtonNewWdg behaviors - Celton McGrath - 05-07-2020 I also just fixed up my pull request... it has some Python 3 fixes and really old fixes from January. RE: 4.8 ButtonNewWdg behaviors - listy - 05-07-2020 Hi! How can I download this pull-request? Bye! RE: 4.8 ButtonNewWdg behaviors - remkonoteboom - 05-07-2020 I just merged it so you just have to pull the latest. RE: 4.8 ButtonNewWdg behaviors - listy - 05-07-2020 Many Thanks! I just realized that i can use Bootstrap4 templates in TACTIC |