Reference Source
import PermissionDropdown from 'flarum/admin/components/PermissionDropdown'
public class | source

PermissionDropdown

Extends:

src/common/Component.js~ComponentDropdown → PermissionDropdown

Static Method Summary

Static Public Methods
public static

initAttrs(attrs: *)

Method Summary

Public Methods
public

isGroupDisabled(id: *): *

public

save(groupIds: *)

public

toggle(groupId: *)

public

view(vnode: *): *

Inherited Summary

From class Dropdown
public static

initAttrs(attrs: *)

public
public

getMenu(items: *): *

public

oncreate(vnode: *)

public

oninit(vnode: *)

public

view(vnode: *): *

protected

getButton(children: *): *

Get the template for the button.

protected

getButtonContent(children: *): *

Get the template for the button's content.

Static Public Methods

public static initAttrs(attrs: *) source

Override:

Dropdown#initAttrs

Params:

NameTypeAttributeDescription
attrs *

Public Methods

public isGroupDisabled(id: *): * source

Params:

NameTypeAttributeDescription
id *

Return:

*

public save(groupIds: *) source

Params:

NameTypeAttributeDescription
groupIds *

public toggle(groupId: *) source

Params:

NameTypeAttributeDescription
groupId *

public view(vnode: *): * source

Override:

Dropdown#view

Params:

NameTypeAttributeDescription
vnode *

Return:

*