Support adding DOM object(s) to legend