Closed zeraati closed 2 months ago
You need to change the buttons definition of the base template. Click on Get the source code of base template main menu button - try changing width and height for the menuButton node menu button - try changing width and height for base_node_menu in the base definition
I changed the height of the menu button
But it is still displayed based on the height of the default template => height 3px
https://code.balkan.app/change-base-template-menu-button#JS
Please send a screenshot of the expected result.
default 3px
this is 10 px
I changed the template in code to height 10px, but still the default size 3 is loaded in view Only if I change the codes in the inspect of chrome, the correct height will be displayed The page is loaded based on the initial default format, not based on the default format that I have changed https://code.balkan.app/change-base-template-menu-button#JS I changed the height of the menu button to 10 px But it is still displayed based on 3px height
Yes, sorry. You need to change it for the current template: https://code.balkan.app/family-tree-js/menu-button-size#JS
You need to change the buttons definition of the base template. Click on Get the source code of base template main menu button - try changing width and height for the menuButton node menu button - try changing width and height for base_node_menu in the base definition
base_node_menu has no height and width
How can I make it bigger?
Edited the code demo: https://code.balkan.app/family-tree-js/menu-button-size#JS Added transform="matrix(1.5,0,0,1.5,-10,-10)" to change the button
https://code.balkan.app/family-tree-js/menu-button-size#JS Clicking on menu and menu node not worked
because the menus are empty; menu: {}, nodeMenu: {}
You can add menu options: nodeMenu: { details: { text: "Details" }, edit: { text: "Edit" }, add: { text: "Add" }, remove: { text: "Remove" } }, menu: { pdf: { text: "Export PDF" }, png: { text: "Export PNG" }, svg: { text: "Export SVG" }, csv: { text: "Export CSV" } },
and for change color?
fill property not work
I have changed the color: https://code.balkan.app/family-tree-js/menu-button-size#JS
How can I increase the size of the menu button?![image](https://github.com/BALKANGraph/FamilyTreeJS/assets/21211444/b42963e6-04d9-4490-b8c3-e6fb2fb61fce)