Skip to content

Commit 592252c

Browse files
committed
pat contentbrowser initial stub
1 parent 4fea710 commit 592252c

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

src/pat/contentbrowser/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
});

0 commit comments

Comments
 (0)