Download public/scripts/extensions/quick-reply/src/ui/ctx/MenuHeader.js from SCritter/st-mobile: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/SCritter/st-mobile/resolve/main/public/scripts/extensions/quick-reply/src/ui/ctx/MenuHeader.js
- Command line
-
hf download hf://spaces/SCritter/st-mobile/public/scripts/extensions/quick-reply/src/ui/ctx/MenuHeader.js
-
curl -L -o MenuHeader.js https://huggingface.co/spaces/SCritter/st-mobile/resolve/main/public/scripts/extensions/quick-reply/src/ui/ctx/MenuHeader.js
530 Bytes
| import { MenuItem } from './MenuItem.js'; | |
| export class MenuHeader extends MenuItem { | |
| constructor(/**@type {String}*/label) { | |
| super(null, null, label, null, null, null, []); | |
| } | |
| render() { | |
| if (!this.root) { | |
| const item = document.createElement('li'); { | |
| this.root = item; | |
| item.classList.add('list-group-item'); | |
| item.classList.add('ctx-header'); | |
| item.append(this.label); | |
| } | |
| } | |
| return this.root; | |
| } | |
| } | |