Define a server_binding element
Define a server_binding class as below. All attributes in the div are required.
<div class="server_binding" id="myDiv" show_param="myDiv" show_function="myCallback" range="132" address="0" type="1" length="1" block_format="Bool"></div>
id: the unique identifier of an element
class=server_binding: scan identifier for JavaScript framework
range: the first part of the address
address: as the third part of the actual address, address means the data offset from the range start.
type: data type
length: data counts with its type.
show_function: define the function that is used to show the data. This function is a "callback" function. Framework call the callback function when the binding data is refreshed.
show_param: parameter for the callback function.
block_format: value display format
For more information on the parameters, see Data format.
|
Note
Ensure all the parameters are included when you define the sever_binding element. Otherwise, the data cannot be bound. |