Skip to content

Commit

Permalink
make ComboBox.nodes available, #797
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 13, 2023
1 parent 1f28f82 commit 57fbb20
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/ComboBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export default class ComboBox<T> extends WidthSizable( Node ) {

private readonly listPosition: ComboBoxListPosition;

// List of nodes created from ComboBoxItems to be displayed with their corresponding value. See ComboBoxItem.createNode().
public readonly nodes: Node[];

// button that shows the current selection (internal)
public button: ComboBoxButton<T>;

Expand Down Expand Up @@ -263,6 +266,8 @@ export default class ComboBox<T> extends WidthSizable( Node ) {

super();

this.nodes = nodes;

this.listPosition = options.listPosition;

// optional label
Expand Down

1 comment on commit 57fbb20

@zepumph
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.