Module tag
awesome tag API
Author:
Julien Danjou <julien@danjou.info> |
Copyright© 2008-2009 Julien Danjou
Functions
add_signal (name, func) | Add a signal. |
clients (clients_table) | Get or set the clients attached to this tag. |
emit_signal (name, ...) | Emit a signal. |
remove_signal (name, func) | Remove a signal. |
Tables
tag | Tag object. |
Functions
- add_signal (name, func)
-
Add a signal.
Parameters
- name: A signal name.
- func: A function to call when the signal is emitted.
- clients (clients_table)
-
Get or set the clients attached to this tag.
Parameters
- clients_table: None or a table of clients to set as being tagged with this tag.
Return value:
A table with the clients attached to this tags. - emit_signal (name, ...)
-
Emit a signal.
Parameters
- name: A signal name.
- ...: Various arguments, optional.
- remove_signal (name, func)
-
Remove a signal.
Parameters
- name: A signal name.
- func: A function to remove.