Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. How many events does the BaseFieldType provide?

  2. A.

     1

    B.

     2

    C.

     3

    D.

     4

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    BaseFieldType provides three events that you can latch code onto:
    1. onBeforeSave() : Called right before a field is saved.
    2. onAfterSave() : Called right after a field is saved, and $this->model->id is set.
    3. onAfterElementSave() : Called right after an element is saved, and $this->element->id is set.


Be The First To Comment