Get Free Trial

infinityValue and divideByZeroValue not configurable

Ilaria asked on November 26, 2019

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

5 answers

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,

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,

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.

david June 4, 2020

Hi Illia,
Is there an up-to-date version of the extendedToolbar.toolbar.js you linked in an earlier reply?

Illia Yatsyshyn Illia Yatsyshyn Flexmonster June 5, 2020

Thank you for your question.
Our team would like to kindly explain that the mentioned file has been created for the specific case discussed within the current thread.
If you require to complement the updated Toolbar with extended functionality, your are welcome to use the file provided earlier as a template.
Our team hopes it helps.
Please contact us in case additional questions appear.

Please login or Register to Submit Answer