Client code for cq:layout=auto
I would like to use cq:layout="auto" in my component's edit config. https://docs.adobe.com/docs/en/cq/5-5/developing/components/edit_config.html#cq:layout
The documentation states that auto allows the client code to determine if it should be editbar or rollover, but I can't find any documentation or literature on how to achieve this.
Could anybody provide sample code or links to help? Thanks!