dark_mode edit EN
  • Method WButton :ShowSection
  • Parameters
    cSection

  • Return value
    NIL

It allows you to assign JavaScript code to any control event to display a specific section of the document without having to reload it. This is most clearly seen in the example, which activates the form defined in the "section_FormSection" section.

WITH OBJECT WButton():New( ::oMainSection )
:cText := "Run modal form via FETCH Api"
:OnClick := :ShowSection( "Section_FormSection" )
:cId := "mybutton"
:Create()
END WITH

Previous chevron_left Next chevron_right