File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ import { YTNode } from '../helpers.js' ;
2+ import { Parser , type RawNode } from '../index.js' ;
3+ import { type ObservedArray } from '../helpers.js' ;
4+ import Text from './misc/Text.js' ;
5+ import Form from './Form.js' ;
6+ import Button from './Button.js' ;
7+
8+ export default class FormPopup extends YTNode {
9+ static type = 'FormPopup' ;
10+
11+ title : Text ;
12+ form : Form | null ;
13+ buttons : ObservedArray < Button > ;
14+
15+ constructor ( data : RawNode ) {
16+ super ( ) ;
17+ this . title = new Text ( data . title ) ;
18+ this . form = Parser . parseItem ( data . form , Form ) ;
19+ this . buttons = Parser . parseArray ( data . buttons , Button ) ;
20+ }
21+ }
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ export { default as FeedTabbedHeader } from './classes/FeedTabbedHeader.js';
183183export { default as FlexibleActionsView } from './classes/FlexibleActionsView.js' ;
184184export { default as Form } from './classes/Form.js' ;
185185export { default as FormFooterView } from './classes/FormFooterView.js' ;
186+ export { default as FormPopup } from './classes/FormPopup.js' ;
186187export { default as GameCard } from './classes/GameCard.js' ;
187188export { default as GameDetails } from './classes/GameDetails.js' ;
188189export { default as Grid } from './classes/Grid.js' ;
You can’t perform that action at this time.
0 commit comments