Display breakout rooms user names in row tooltip.

This commit is contained in:
Ghazi Triki 2017-02-01 18:52:30 +01:00
parent 9dee97c75f
commit 2910c0f0b3

View File

@ -602,6 +602,15 @@
private function breakoutRoomNameLabelFunction(item:Object, column:DataGridColumn) : String {
return ResourceUtil.getInstance().getString('bbb.users.roomsGrid.room') + " " + item.sequence;
}
private function breakoutRoomsToolTip(item:Object):String {
var room:BreakoutRoom = item as BreakoutRoom;
var names:Array = [];
for (var i:int = 0; i < room.users.length; i++) {
names.push(room.users.getItemAt(i)["name"]);
}
return names.join("\n");
}
]]>
</mx:Script>
@ -633,14 +642,20 @@
text="..." toolTip="{ResourceUtil.getInstance().getString('bbb.users.breakout.timer.toolTip')}"/>
</mx:HBox>
<mx:DataGrid id="roomsGrid" editable="false" sortableColumns="false" dataProvider="{breakoutRoomsList}"
<mx:DataGrid id="roomsGrid" editable="false" sortableColumns="false"
dataProvider="{breakoutRoomsList}" dataTipFunction="breakoutRoomsToolTip"
dragEnabled="false" width="100%" height="100%" draggableColumns="false"
accessibilityName="{ResourceUtil.getInstance().getString('bbb.users.breakout.breakoutRooms')}">
<mx:columns>
<mx:DataGridColumn labelFunction="breakoutRoomNameLabelFunction" headerText="{ResourceUtil.getInstance().getString('bbb.users.roomsGrid.room')}" />
<mx:DataGridColumn dataField="numberOfUsers" headerText="{ResourceUtil.getInstance().getString('bbb.users.roomsGrid.users')}"/>
<mx:DataGridColumn dataField="meetingId" headerText="{ResourceUtil.getInstance().getString('bbb.users.roomsGrid.action')}"
<mx:DataGridColumn labelFunction="breakoutRoomNameLabelFunction"
showDataTips="true"
headerText="{ResourceUtil.getInstance().getString('bbb.users.roomsGrid.room')}" />
<mx:DataGridColumn dataField="numberOfUsers"
showDataTips="true"
headerText="{ResourceUtil.getInstance().getString('bbb.users.roomsGrid.users')}"/>
<mx:DataGridColumn dataField="meetingId"
visible="{amIModerator}"
headerText="{ResourceUtil.getInstance().getString('bbb.users.roomsGrid.action')}"
itemRenderer="org.bigbluebutton.modules.users.views.RoomActionsRenderer"/>
</mx:columns>
</mx:DataGrid>