Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Specify cells to be docked at the top of a notebook window
ResourceFunction["SetDockedCells"][expr] displays expr in a docked cell in the current notebook. | |
ResourceFunction["SetDockedCells"][nbobj, expr] displays a docked cell in the given notebook object. | |
ResourceFunction["SetDockedCells"][nbobj, {expr1, expr2, …}] displays a sequence of docked cells. |
"text" | plain text |
TextCell[contents,options] | text cell is formatted like text, with appropriate spacing and line breaking |
ExpressionCell[contents,options] | expression cell can contain any Wolfram Language expressions |
Cell[contents,options] | arbitrary Cell expression |
CellObject[…] | existing cell to be read from an open notebook |
contents | arbitrary Wolfram Language expression to display in an ExpressionCell |
Create a new notebook window, and set its docked cell to contain a string:
In[1]:= |
|
Out[1]= |
|
Put a button in the docked cell to save the notebook:
In[2]:= |
|
Out[2]= |
|
Use TextCell to control the styling of docked text:
In[3]:= |
|
Out[3]= |
|
Add multiple docked cells to a notebook:
In[4]:= |
|
Out[4]= |
|
Use EvaluationNotebook to refer to the notebook which contains the docked cell:
In[5]:= |
|
Out[5]= |
|
Use Grid to position content in a docked cell:
In[6]:= |
|
Out[6]= |
|
Navigate a notebook with controls in its docked cell:
In[7]:= |
|
Out[7]= |
|
Store docked cell state in notebook-level tagging rules:
In[8]:= |
|
Out[8]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License