How can I make this callback in a multiple layout dashboard?

Please consider reading this: