Skip to content

Facepile

Overlapping avatars of collaborators, as in the title bar of a collaborative editor. People beyond max_shown are grouped into +N.

ui.facepile · Category: Data · Full reference →

FacepileFacepile
  • To show who is in a project, a call or a document without listing names.
import pyzed as pz
from pyzed import ui
pz.column([
ui.facepile(["Ana", "Luis", "Kev", "Marta"]),
ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam", "Jo", "Lee", "Max"], size=28, max_shown=4),
], spacing=16, align="center")
Facepile: Two peopleFacepile: Two people
Two people
Code
ui.facepile(["Ana", "Luis"])
Facepile: Five peopleFacepile: Five people
Five people
Code
ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam"])
Facepile: max_shown=3Facepile: max_shown=3
max_shown=3
Code
ui.facepile(["Ana", "Luis", "Kev", "Marta", "Sam", "Jo", "Lee"], max_shown=3)
Facepile: size=32, overlap=10Facepile: size=32, overlap=10
size=32, overlap=10
Code
ui.facepile(["Ana", "Luis", "Kev", "Marta"], size=32, overlap=10)

Facepile has no events of its own: it shows what you give it. Like every widget it also has the 18 common events (click, double_click, right_click, mouse_enter, drag, key_down, resize…), attached with .on(...): see Events and Events of every component.

facepile(people, *, size=22, overlap=6, max_shown=5, theme=None)

Overlapping collaborator avatars, as in the title bar of a collaborative editor. Those beyond max_shown are grouped into +N.

Property Default Description
people required Initials or names.
size 22 Size.
overlap 6 Overlap in pixels.
max_shown 5 How many to show.
theme None Theme to use instead of the current one (pyzed.theme.current()).

Full reference →