Going by Ohm's law, P=I*V, where P= power measured in Watts, I= current measured in Amps, & V=voltage in volts. You're inverter, at 240volts has a maximum current delivery of 1.25Amps (I=P/V).
As most e-bike chargers are rated at around 2Amps, a 300w inverter would sadly not be up to the...