Skip to content

Commit afee6e3

Browse files
authored
refactor!: remove deprecated withEventHandler from LitRenderer (#4595)
1 parent 0248d2a commit afee6e3

File tree

1 file changed

+0
-38
lines changed
  • vaadin-renderer-flow-parent/vaadin-renderer-flow/src/main/java/com/vaadin/flow/data/renderer

1 file changed

+0
-38
lines changed

vaadin-renderer-flow-parent/vaadin-renderer-flow/src/main/java/com/vaadin/flow/data/renderer/LitRenderer.java

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -295,44 +295,6 @@ public LitRenderer<SOURCE> withProperty(String property,
295295
return this;
296296
}
297297

298-
/**
299-
* Adds an event handler that can be called from within the template
300-
* expression.
301-
* <p>
302-
* Examples:
303-
*
304-
* <pre>
305-
* {@code
306-
* // Standard event
307-
* LitRenderer.of("<button @click=${handleClick}>Click me</button>")
308-
* .withEventHandler("handleClick", object -> doSomething());
309-
* }
310-
* </pre>
311-
*
312-
* The name of the event handler used in the template expression should be
313-
* the name used at the eventHandlerName parameter. This name must be a
314-
* valid JavaScript function name.
315-
*
316-
* @param eventHandlerName
317-
* the name of the event handler used inside the template
318-
* expression, must be alphanumeric and not <code>null</code>,
319-
* must not be one of the JavaScript reserved words
320-
* (https://www.w3schools.com/js/js_reserved.asp)
321-
* @param handler
322-
* the handler executed when the event handler is called, not
323-
* <code>null</code>
324-
* @return this instance for method chaining
325-
* @see <a href=
326-
* "https://lit.dev/docs/templates/expressions/#event-listener-expressions">https://lit.dev/docs/templates/expressions/#event-listener-expressions</a>
327-
*
328-
* @deprecated Use {@link #withFunction(String, SerializableConsumer)}
329-
* instead.
330-
*/
331-
public LitRenderer<SOURCE> withEventHandler(String eventHandlerName,
332-
SerializableConsumer<SOURCE> handler) {
333-
return withFunction(eventHandlerName, handler);
334-
}
335-
336298
/**
337299
* Adds a function that can be called from within the template expression.
338300
* <p>

0 commit comments

Comments
 (0)