Welcome, guest Sign In

yml:friend-selector

Description

Displays an HTML select list of the user's friends. In Yahoo! Profiles, friends are called "connections." Note: If the viewer (person running the application) and the target user (specified by uid attribute) are not the same, the friends list is available only if the viewer and the target user are friends.

Attributes

Name Type Required/Optional Description
uid string optional The ID of the user to build a friends list for. Allowed values are a GUID, the string "viewer", and the string "owner". Default is "viewer".
multiple boolean optional Allows multiple selections. Default is "false".
name string optional Name of the form element that is generated. Default is "selectedFriend".
size numeric optional Size of HTML select element. If "multiple" is set, then this defaults to 10. Otherwise, it's ignored.
selected string optional A comma-delimited list of user IDs (uid) that will be pre-selected. Default is nothing selected.

Examples

See also Friend Selector and Friend Selector With Style.

Table of Contents

Copyright © 2009 Yahoo! Inc. All rights reserved. Copyright | Privacy Policy

Help us continue to improve the Yahoo! Developer Network: Send Your Suggestions