A voltage-controlled silver nanograting device for dynamic modulation of transmitted light based on the surface plasmon polariton effect.