So I've got the standard SC.Checkbox controls embedded in my template views like so:
{{SC.Checkbox id="student-visible" }}
And I'd like to invoke a click event on the checkbox.
I figured it would work something like:
module SC
module Views
class TemplateView < Lebowski::Foundation::Views::View
representing_sc_class 'SC.TemplateView'
end
class Checkbox < TemplateView
representing_sc_class 'SC.Checkbox'
end
end
end
# test runner
include SC::Views
ProxyFactory.proxy TemplateView
ProxyFactory.proxy Checkbox
// assume some app loading cruft that works already
student_visible = @app["#student-visible", Checkbox]
student_visible.click()
The issue I am having is routing that click event to the actual SC.Checkbox, I've tired selecting it with core query and invoking mouseUp which doesn't seem to work for a variety of reasons as I try different things.
Any thoughts would be great.
You can also find my on skype as joegaudet :)
.joe
.joe
----------------------------
Joe Gaudet
778.994.4846