Custom WebControl

    In XWorker, any model that implements the httpDo() method can be used as a WebControl. For example, the following HtmlContent model is a WebControl.

    The HtmlContent model in the above figure implements the httpDo method, and in the httpDo method, the value of the description attribute of the model is regarded as a part of the web page.

    The image above is an example model of HtmlContent.

    This is the result of running the HtmlContent sample model.

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号