Returns current view type or sets a new one.
viewType([value])
value string, optional, new view type to be set
Returns string.

Description

You can use this method to change view type of listview. Allowed values is "table", "icon-tile", "icon-large", "icon-medium", "icon-small". If passed a different value, then "icon-small" is used.
If you have listview defined in the following way: You can change view type of the listview: