event.hrl 956 B

12345678910111213141516171819202122
  1. -ifndef(NITRO_EVENT).
  2. -define(NITRO_EVENT, true).
  3. -include_lib("nitro/include/nitro.hrl").
  4. -record(event, {?ACTION_BASE(action_event), type=default, postback, delegate, validation=[]}).
  5. -record(action, {?ACTION_BASE(undefined)}).
  6. -record(wire, {?ACTION_BASE(action_wire)}).
  7. -record(replace, {?ACTION_BASE(action_manage), elements}).
  8. -record(insert, {?ACTION_BASE(action_manage), elements, position = beforeend}).
  9. -record(multi, {?ACTION_BASE(action_manage)}).
  10. -record(focus, {?ACTION_BASE(action_ui)}).
  11. -record(api, {?ACTION_BASE(action_api), name, tag, delegate }).
  12. -record(bind, {?ACTION_BASE(action_bind), type=click, postback}).
  13. -record(alert, {?ACTION_BASE(action_alert), text}).
  14. -record(confirm, {?ACTION_BASE(action_confirm), text, postback, delegate}).
  15. -record(jq, {?ACTION_BASE(action_jq), property, method, args=[], right, format="~s"}).
  16. -record(transfer,{?ACTION_BASE(action_transfer), state, events=[] }).
  17. -endif.