Skip to content

Commit

Permalink
more button
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Aug 13, 2024
1 parent dfb3759 commit 4720a3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/components/TreeView.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ export const SimpleOutputBody = ({ mime, body, cell_id, persist_js_state, saniti

const More = ({ on_click_more }) => {
const [loading, set_loading] = useState(false)
const element_ref = useRef(/** @type {HTMLElement?} */ (null))
useKeyboardClickable(element_ref)

return html`<pluto-tree-more
ref=${element_ref}
tabindex="0"
role="button"
class=${loading ? "loading" : ""}
Expand Down

0 comments on commit 4720a3d

Please sign in to comment.