Function Repository Resource:

DynamicListView

Source Notebook

Display the contents of a list with dynamic controls for paging and skimming

Contributed by: Michael Sollami

ResourceFunction["DynamicListView"][list,pageSize]

creates an interactive view of the list showing pageSize elements per page.

Details and Options

ResourceFunction["DynamicListView"] accepts the following options:
"ButtonAlignment"Centeralign the paging buttons to the Left,Right or Center
"MapIndexedFunction"Firsta function to be MapIndexed across the sliced list
"PageDisplayFunction"Identitya function to wrap the output list
"ShowCounts"Truewhether to show counts of the remaining items
"ShowSlider"Truewhether to display the interval slider control

Examples

Basic Examples (2) 

Slide through a list:

In[1]:=
ResourceFunction["DynamicListView"]@Range[100]
Out[1]=

Slide or page through a list 15 items at a time:

In[2]:=
ResourceFunction["DynamicListView"][Names["*Distribution"], 15]
Out[2]=

Options (4) 

Hide the item counts on the left/right buttons:

In[3]:=
ResourceFunction["DynamicListView"][Range[100], "ShowCounts" -> False]
Out[3]=

Hide the IntervalSlider:

In[4]:=
ResourceFunction["DynamicListView"][Range[100], "ShowSlider" -> False, "ButtonAlignment" -> Left]
Out[4]=

Change the way elements are displayed:

In[5]:=
ResourceFunction["DynamicListView"][2 Range[100], 30, "MapIndexedFunction" -> (Tooltip[
     Framed[Style[#1, 10, LineBreakWithin -> False], Background -> LightBlue], #2] &), "ShowCounts" -> True]
Out[5]=

Change the way the list slice is displayed:

In[6]:=
ResourceFunction["DynamicListView"][2 Range[100], 5, "PageDisplayFunction" -> TableForm, "ShowCounts" -> True]
Out[6]=
In[7]:=
ResourceFunction["DynamicListView"][2 Range[100], 30, "PageDisplayFunction" -> (Multicolumn[#, Appearance -> "Horizontal"] &), "ShowCounts" -> True]
Out[7]=

Publisher

Michael Sollami

Version History

  • 2.0.0 – 14 February 2020
  • 1.0.0 – 27 January 2020

Related Resources

License Information