x-spreadsheet How can i call toolbar button function explicitly ?

o4tp2gmn  于 2023-03-19  发布在  其他
关注(0)|答案(3)|浏览(126)

@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

hm2xizp9

hm2xizp91#

Hi @poojacha77
You can try this:

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

gudnpqoy2#

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

5q4ezhmt

5q4ezhmt3#

@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
functions

Thanks

相关问题