Skip to content

Commit

Permalink
add onSubmit event
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Aug 30, 2024
1 parent a1b0508 commit f388993
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haxe/ui/components/TextField.hx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ class TextField extends InteractiveComponent implements ICompositeInteractiveCom
@:clonable @:behaviour(SelectionStartIndexBehaviour) public var selectionStartIndex:Int;
@:clonable @:behaviour(SelectionEndIndexBehaviour) public var selectionEndIndex:Int;

@:event(UIEvent.SUBMIT) public var onSubmit:UIEvent->Void;

public var isBlank(get, null):Bool;
private function get_isBlank():Bool {
if (text == null) {
Expand Down

0 comments on commit f388993

Please sign in to comment.