Get Free Trial
Get Free Trial

infinityValue and divideByZeroValue not configurable

Answered
Ilaria asked on November 26, 2019

Hi, 
I noticed that the properties ‘infinityValue’ and ‘divideByZeroValue’ are not configurable in the FormatCell form.
Is it possible to add them?
Thank you!
Ilaria

3 answers

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 27, 2019

Hello, Ilaria,
 
Thank you for reaching out to us.
 
Adding desired settings can be implemented through customizing Toolbar. We have prepared the file containing the FlexmonsterToolbar.prototype.showFormatCellsDialog method that will add the functionality you need. The original method of the Toolbar has to be replaced with the content of the file you can find in attachments.
 
If you are using npm to update the component, we kindly recommend following the instruction below to prevent additional functionality disappear every time you update Flexmonster:

  1. When including Flexmonster in your project, use flexmonster.full.js instead of flexmonster.js.
  2. Add a link to the flexmonster.css file inside the <head> tag.
  3. Copy an attached file to the directory you want it to be placed in.
  4. Indicate the path to the new file right after flexmonster.full.js is connected:
    <script type="text/javascript" src="path/flexmonster.full.js"></script>
    <script type="text/javascript" src="path/extendedToolbar.toolbar.js"></script>

 
Such an approach allows saving additional features even after updating of the component.
 
We hope it helps.
 
Feel free to contact us in case of any additional questions occur.
 
Kind Regards,
Illia

Public
Ilaria November 28, 2019

Just another question regarding the customization approach you suggest: what about possible fix or new feature you will release? I mean: if I overwrite the function FlexmonsterToolbar.prototype.showFormatCellsDialog and in the next releases you modify that function I should manually merge the two implementations. Am I right?
Thank you,
Ilaria

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster November 28, 2019

Hello, Ilaria,
 
Yes, you are right. The necessity of merging with Flexmonster’s updates is the main disadvantage of such an approach.
 
Please let us know in case of any other questions.
 
Regards,
Illia

Please login or Register to Submit Answer