nmrium icon indicating copy to clipboard operation
nmrium copied to clipboard

New property: emptyComponent

Open lpatiny opened this issue 2 years ago • 1 comments

Currently, we can define an 'emptyText' component that will be centred in NMRium if no spectrum is displayed. However, this still assumes that we can 'drag / drop' some data and therefore the layout shows the dashed line with the text in the middle.

In the case of simulation or prediction, I would prefer to have a fully customizable component that will also replace the dashed lines. This would allow me to create a user guide for the simulation and prediction pages.

image

@targos is this ok to add this new property emptyComponent ?

lpatiny avatar Aug 06 '23 07:08 lpatiny

You just want to remove the dashed lines (and drop behavior) or also replace the grey rectangle? I'm asking because the current implementation is quite intricate and not easy to customize.

targos avatar Aug 09 '23 09:08 targos