Allow for optional collapsed or expanded item class names.