Skip to content

Commit

Permalink
Add missing getitem
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 29, 2021
1 parent 0e07361 commit 692b2be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions panel/layout/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,9 @@ def _update_active(self, *events):
# Public API
#----------------------------------------------------------------

def __getitem__(self, index):
return self.objects[index]

def __len__(self):
return len(self.objects)

Expand Down

0 comments on commit 692b2be

Please sign in to comment.