Elgg
Version 3.0
|
Go to the source code of this file.
Functions | |
elgg | provide ('elgg.ui') |
elgg | register_hook_handler ('init', 'system', elgg.ui.init) |
Variables | |
elgg ui | init |
elgg ui | toggles |
Toggles an element based on clicking a separate element. More... | |
elgg ui | initHoverMenu |
Initialize the hover menu. More... | |
elgg ui | requiresConfirmation |
Calls a confirm() and returns false if denied. More... | |
elgg ui | registerTogglableMenuItems |
This function registers two menu items that are actions that are the opposite of each other and ajaxifies them. More... | |
elgg provide | ( | 'elgg.ui' | ) |
elgg ui initHoverMenu |
elgg ui registerTogglableMenuItems |
This function registers two menu items that are actions that are the opposite of each other and ajaxifies them.
E.g. like/unlike, friend/unfriend, ban/unban, etc.
You can also add the data parameter 'data-toggle' to menu items to have them automatically registered as toggleable without the need to call this function.
elgg ui requiresConfirmation |
Calls a confirm() and returns false if denied.
{Object} | e |
elgg ui toggles |
Toggles an element based on clicking a separate element.
Use rel="toggle" on the toggler element Set the href to target the item you want to toggle () or use data-toggle-selector="your_jquery_selector" to have an advanced selection method By default elements perform a slideToggle. If you want a normal toggle (hide/show) you can add data-toggle-slide="0" on the elements to prevent a slide. {Object} event void