SP.ViewCreationInformation.viewFields property (sp.js)
Gets or sets the value that specifies the collection of field internal names for the list fields in the new list view.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.ViewCreationInformation.get_viewFields ()
var value = SP.ViewCreationInformation.set_viewFields ()
Return value
Type: String