on_comment Event

Fired when a comment section is encountered.

Syntax

class RESTCommentEventParams(object):
  @property
  def text() -> str: ...

# In class REST:
@property
def on_comment() -> Callable[[RESTCommentEventParams], None]: ...
@on_comment.setter
def on_comment(event_hook: Callable[[RESTCommentEventParams], None]) -> None: ...

Remarks

The on_comment event is fired whenever a comment section (<!-- ..text... -->) is found in the document.

The full text of the comment is provided by the Text parameter.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]