File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ permalink : " pat/contentbrowser/"
3+ title : Content Browser
4+ ---
5+
6+ # Content Browser pattern.
7+
8+ ## Configuration
9+
10+ | Option | Type | Default | Description |
11+ | :-:| :-:| :-:| :-:|
12+
13+ ## Example
14+
15+ <div class =" pat-contentbrowser " >hello.</div >
16+
17+ ``` html
18+ <div class =" pat-contentbrowser" >hello.</div >
19+ ```
20+
Original file line number Diff line number Diff line change 1+ import "regenerator-runtime/runtime" ; // needed for ``await`` support
2+ import Base from "patternslib/src/core/base" ;
3+
4+ export default Base . extend ( {
5+ name : "contentbrowser" ,
6+ trigger : ".pat-contentbrowser" ,
7+ parser : "mockup" ,
8+
9+ async init ( ) {
10+ // let volto = await import("@plone/volto");
11+ this . el . style [ "background-color" ] = "green" ;
12+ } ,
13+ } ) ;
You can’t perform that action at this time.
0 commit comments