Fix #432 => Support the click event callback of the plot background

This commit is contained in:
An An 2023-06-05 15:45:12 +08:00
parent d498d1957c
commit 9cc999534e
1 changed files with 7 additions and 0 deletions

View File

@ -293,11 +293,18 @@ public class AAResetZoomButton: AAObject {
}
public class AAChartEvents: AAObject {
public var click: String?
public var load: String?
public var redraw: String?
public var render: String?
public var selection: String?
@discardableResult
public func click(_ prop: String?) -> AAChartEvents {
click = prop?.aa_toPureJSString()
return self
}
@discardableResult
public func load(_ prop: String?) -> AAChartEvents {