You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 26, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: Source/FolioReaderConfig.swift
+13-8Lines changed: 13 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -52,20 +52,24 @@ public struct ClassBasedOnClickListener {
52
52
/// The name of the URL scheme which should be used. Note: Make sure that the given `String` is a valid as scheme name.
53
53
publicvarschemeName:String
54
54
55
-
/// The HTML class name to which the listener should be added.
56
-
publicvarclassName:String
55
+
/// The query selector for the elements which the listener should be added to. See https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector for further information about query selectors.
56
+
publicvarquerySelector:String
57
57
58
-
/// The name of the parameter whose content should be passed to the `onClickAction` action
59
-
publicvarparameterName:String
58
+
/// The name of the attribute whose content should be passed to the `onClickAction` action.
59
+
publicvarattributeName:String
60
+
61
+
/// Whether the listener should be added to all found elements or only to the first one. See https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll for further information. The default value is `true`.
62
+
publicvarselectAll:Bool
60
63
61
64
/// The closure which will be called if the specified class was clicked.
/// Initializes a `ClassBasedOnClickListener` instance. Append it to the `classBasedOnClickListeners` property from the `FolioReaderConfig` to receive on click events.
/// Initializes a `ClassBasedOnClickListener` instance. Append it to the `classBasedOnClickListeners` property from the `FolioReaderConfig` to receive on click events. The default `selectAll` value is `true`.
0 commit comments