I undestand a component uses as partial to use AJAX to show data with out generating a page refresh.
how do i call different functions once i call one?
Besides onStart i have: public function onSelect()
which returns data and i handle it inside the partial.
I want to call a different function: public function onGradeQuestion() but i do not figure out how to so it.
I call public function onSelect() this way:
<form data-request="{{ SELF }}::onSelect"
data-request-update="'{{ SELF }}::quizSelection': '#result'">
I am panning to call onGradeQuestion and fill a new partial with the resulting data
<form data-request="{{ SELF }}::onGradeQuestion"
data-request-update="'{{ SELF }}::grasdeResult': '#gradeResult'">
It is correct my thinking? i have a hard time figuring out the proper flow of octobercms.
Usually in other languages you create a class with its methods and you call them as you need them.
I have a C# background trying octobercms. please help.