Home Cooker Classes Others Rice
Classes  >  neva  >  Data
neva class : Data getter

Description

Gets a string data attached to the event.

Syntax

nevaInstance.Data

Arguments

None

Return value

ClassDescription
stringA string data attached to the event.

Sample code

Suppose you have the following class definition.

1:

class handle

2:

...

3:

open fitter handle()

4:

// any initialization code...

5:

endfitter

6:

...

7:

open method void handler(neva ea)

8:

...

9:

string data = ea.Data;

10:

...

11:

endmethod

12:

...

13:

endclass

Handler assignment is as follows.

1:

jsexecutor jse = new jsexecutor();

2:

handle h = new handle();

3:

switch ehs = jse.Notice(h,"handler(neva)");

4:

ehs.Start(); // Starts handling.

The handler invocation from JavaScript is as follows.

1:

window.external.notice('some data');

In this case, the Data getter of the argument is "some data".

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.