Skip to content

Commit

Permalink
Add multiline @:p on text input
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedphoenix committed Oct 18, 2024
1 parent b541d04 commit 0224b6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions h2d/domkit/BaseComponents.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,7 @@ class InputComp extends TextComp implements domkit.Component.ComponentDecl<h2d.T
@:p(tile) var selection : h2d.Tile;
@:p var edit : Bool;
@:p(color) @:t(color) var backgroundColor : Null<Int>;
@:p var multiline : Bool;

static function create( parent : h2d.Object ) {
return new h2d.TextInput(hxd.res.DefaultFont.get(),parent);
Expand All @@ -1137,6 +1138,10 @@ class InputComp extends TextComp implements domkit.Component.ComponentDecl<h2d.T
o.backgroundColor = col;
}

static function set_multiline( o : h2d.TextInput, b ) {
o.multiline = b;
}

}

#end

0 comments on commit 0224b6e

Please sign in to comment.