Explorar el Código

Add multiline @:p on text input

Leonardo Jeanteur hace 11 meses
padre
commit
0224b6e40b
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      h2d/domkit/BaseComponents.hx

+ 5 - 0
h2d/domkit/BaseComponents.hx

@@ -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);
@@ -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