A handle device includes: a housing, a handle unit including a base portion and a handle portion. The base portion includes a first track and is pivotably connected to the housing. The handle portion includes a slider movable along the first track and a retractable first locking unit connected to a first side portion of the housing. The first locking unit is positioned at least partially within the first track in a locking position and positioned outside of the first track in an unlocking position.