Posted 17 October 2018, 2:48 am EST
Hi,
Is there any way to add text format (bold,italics,line break etc)to a particular cell in flex sheet. if possible kindly provide some samples
Thanks,
Vishnu Priya
Forums Home / Wijmo / General Discussion
Posted by: vishnupriya on 17 October 2018, 2:48 am EST
Posted 17 October 2018, 2:48 am EST
Hi,
Is there any way to add text format (bold,italics,line break etc)to a particular cell in flex sheet. if possible kindly provide some samples
Thanks,
Vishnu Priya
Posted 18 October 2018, 4:44 am EST
You may use applyCellsMethod() to apply the style to a range of flexSheet cells.
flexSheet.applyCellsStyle({
fontWeight: 'bold',
fornStyle: 'italic'
}, [new wjcGrid.CellRange(7, 1, 7, 3)]);
If the styling is based on some condition then you may handle formatItem event to easily apply conditional styling.
Please refer to the following sample: https://stackblitz.com/edit/angular-weuzl3?file=app%2Fapp.component.ts
~Sharad
Posted 23 October 2018, 12:38 am EST
Thank you for your response. Actually the scenario is to handle the format functionality on right click of mouse . On right click need to show the options(bold,italics,color etc) and select the options will change the style. Is this possible in any way
Posted 24 October 2018, 1:40 am EST
Please refer to the following sample which demonstrates how you can use context menus to format FlexSheet cells:
https://stackblitz.com/edit/angular-bjvdkv?file=app%2Fapp.component.html
~Sharad
Posted 2 November 2018, 2:12 am EST
Thank you Sharad. Its really solve my issue ![]()