Skip to content

Commit

Permalink
fix #598 There is no possibility to define a min/max year at a DateHe…
Browse files Browse the repository at this point in the history
…aderFilter
  • Loading branch information
vegegoku committed Nov 10, 2024
1 parent 87b6254 commit c496ae8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.dominokit.domino.ui.datatable.model.SearchContext;
import org.dominokit.domino.ui.datatable.plugins.column.ColumnHeaderFilterPlugin;
import org.dominokit.domino.ui.forms.DateBox;
import org.dominokit.domino.ui.utils.ChildHandler;

/**
* The DateHeaderFilter class provides a header filter for date columns in a DataTable. It allows
Expand Down Expand Up @@ -73,6 +74,11 @@ public DateBox getDateBox() {
return dateBox;
}

public DateHeaderFilter<T> withDateBox(ChildHandler<DateHeaderFilter<T>, DateBox> handler) {
handler.apply(this, dateBox);
return this;
}

/**
* Initializes the DateHeaderFilter and sets up filtering behavior.
*
Expand Down

0 comments on commit c496ae8

Please sign in to comment.