Class humhub\modules\user\widgets\UserListBox
Inheritance | humhub\modules\user\widgets\UserListBox » yii\base\Widget |
---|
UserListBox returns the content of the user list modal
Example Action:
public actionUserList() {
$query = User::find();
$query->where(...);
$title = "Some Users";
return $this->renderAjaxContent(UserListBox::widget(['query' => $query, 'title' => $title]));
}
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$pageSize | integer | Displayed users per page | humhub\modules\user\widgets\UserListBox |
$query | \yii\db\ActiveQuery | humhub\modules\user\widgets\UserListBox | |
$title | string | Title of the box (not html encoded!) | humhub\modules\user\widgets\UserListBox |
Public Methods
Method | Description | Defined By |
---|---|---|
init() | humhub\modules\user\widgets\UserListBox | |
run() | humhub\modules\user\widgets\UserListBox |
Property Details
Displayed users per page
Title of the box (not html encoded!)