Closed pkasson closed 2 years ago
In the template:
var template = `
<div>
<div class="title-box">Title <div class="icons"><i class="fab fa-edit "><i class="fab fa-delete "></div></div>
<div class="box">
...
</div>
</div>
`;
editor.addNode('node', 0, 1, pos_x, pos_y, 'node', { "name": ''}, template );
I wrote exactly as you showed but couldn't get desired result.
@shehab-01 revise your css or add an image instead of an icon
Related to #80 , I have created a context / right click for the nodes where a menu pops for edit/delete.
I could not get the icons to show properly as shown in #80 ... any ideas on how to inline font-awesome or other icons on same line as text for the title-box ?