myliang/x-spreadsheet

How can i call toolbar button function explicitly ?

poojacha77 opened this issue · 3 comments

@myliang i want to create a menu bar along with toolbar. How can i call toolbar action explicitly from a menu bar icon ?.

Please suggest.
Thanks

Screenshot from 2023-02-11 12-59-31

Hi @poojacha77
You can try this:

[x_spreadsheet].sheet.toolbar.boldEl.click()

@myliang Above script is working fine.But how can call toolbar dropdown functions particularily.For e.g Font,Format,Functions.

@xiujunma
Please also suggest for explicit call of following toolbar functionalities

  1. format
  2. font
  3. fontsize
  4. text color
  5. fill color
  6. border
  7. horizontal align
  8. vertical align
  9.    functions
    

Thanks