Skip to content

Commit 57f6e28

Browse files
authored
Merge pull request #2774 from adumesny/master
angular doc update: custom input
2 parents e11db35 + db41dba commit 57f6e28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

angular/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ public gridOptions: NgGridStackOptions = {
109109
minRow: 1, // make space for empty message
110110
children: [ // or call load()/addWidget() with same data
111111
{x:0, y:0, minW:2, selector:'app-a'},
112-
{x:1, y:0, selector:'app-b'},
113-
{x:0, y:1, content:'plain html content'},
112+
{x:1, y:0, minW:2, selector:'app-a', input: { text: 'bar' }}, // custom input that works using BaseWidget.deserialize() Object.assign(this, w.input)
113+
{x:2, y:0, selector:'app-b'},
114+
{x:3, y:0, content:'plain html'},
114115
]
115116
}
116117

0 commit comments

Comments
 (0)