myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
13.98k stars 1.67k forks source link

How can i call toolbar button function explicitly ? #638

Open poojacha77 opened 1 year ago

poojacha77 commented 1 year ago

@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

xiujunma commented 1 year ago

Hi @poojacha77 You can try this:

[x_spreadsheet].sheet.toolbar.boldEl.click()
monika-sha commented 1 year ago

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

poojacha77 commented 1 year ago

@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