List view layouts allow you to provide custom angular views to be used by the list view UI. By default there are two build in layouts, FluidityTableListViewLayout which displays results in a tablular layout and FluidityGridListViewLayout which displays results in a tiled grid layout.
To define a list view layout you create a class that inherits from the base class FluidityListViewLayout and implements the abstract configuration properties.
// Example
public class MyCustomListViewLayout : FluidityListViewLayout
{
public override string Name => "My Custom List";
public override string Alias => "mycustomlist";
public override string Icon => "icon-list";
public override string View => "/app_plugins/myplugin/views/mycustomlist.html";
}
The required configuration options are:
As well as defining the list view layout class you will also need to implement the relevant angular view and controller. This is a little out of scope for the Fluidity documentation, however in summary you will want to:
package.manifest file in your plugin folder.ng-controller attribute.package.manifest.A list view layout is assigned to a list view as part of the list view configuration. See List View API Documentation for more info.