Creates a Dropdown button with JS events
Methods
add_item
float_right
expand
collapse
toggle
const Dropdown = require('frappejs/frappe/client/ui/dropdown');
let dropdown = new Dropdown({label:'Actions', parent:this.toolbar});
Add a new link to the dropdown
dropdown.add_item('Delete', async () => {
this.show_alert('Deleted', 'success');
});
Move the element to the right
dropdown.float_right();