Live JavaScript v1
Live JavaScript
Live
JavaScript
Home
/
Live
/
JavaScript
/
UIKit

Create a live event

Clicking the create button in LiveListView opens CreateEventView, which you can use to build a view for creating a new live event. When creating a live event, you can set a cover image and a title for the event. In addition, you can choose to add up to ten users who can each act as a host for the live event. If you don't want to select users who can act as a host, set the value of showSelectedUserIdsForHostView to false to hide the view where you can add users. By default, the user who created the live event becomes the host.

See the table below to see what features are available in CreateEventView.

List of features

FeatureDescription

Create a live event

Creates a new live event.

Configure a live event

Allows a user to add and edit a title and add a cover image for the live event.

Select users to be host

Allows a user to select other users who can act as hosts.


Customization

The following table lists a set of customizable properties of CreateEventView. These properties can be set in the customize.CreateEventView object in the App component's props.

Property nameTypeDescription

showUserIdsForHost
SelectionView

boolean

Determines whether to display the view for selecting users who can each act as a host. (Default: true)

renderCustomEvent
HostView

(props:{ userId: string;nickname?: string;profileUrl?: string;hideProfile?: boolean;onRemove?: (userId: string) => void; }

Returns a custom event host view element that the user has set. If not specified, the default event host view element is returned. (Default: null)

String set

The following table lists the properties of stringSet you can customize to modify the create live event view.

CategoryKeyString

Create view

CREATE_EVENT_DEFAULT_TITLE

Live event

Create view

LIVE_EVENT_CREATE_EVENT_TITLE

Title

Create view

LIVE_EVENT_CREATE_EVENT_TITLE_PLACEHOLDER

Add a title

Create view

LIVE_EVENT_CREATE_EVENT_USERS_FOR_HOST

Users who can be host

Create view

LIVE_EVENT_CREATE_EVENT_COVER_IMAGE_TITLE

Cover image

Create view

LIVE_EVENT_CREATE_EVENT_COVER_IMAGE_BUTTON

Upload photo

Create view

LIVE_EVENT_CREATE_HEADER_BUTTON

Create

Create view

LIVE_EVENT_CREATE_HEADER_TITLE

New live event

Create view

LIST_USERS_FOR_HOST_HEADER_TITLE

Users who can be host

Create view

NICKNAME

Nickname

Create view

USER_ID

User ID

Create view

USER_SEARCH_COUNT_EXCEED_DESCRIPTION

Can't add more than 10 users

Create view

USER_SEARCH_ERROR_DESCRIPTION

Something went wrong. Try again.

Create view

USER_SEARCH_EXACT_MATCH_DESCRIPTION

Only an exact match can be found.

Create view

USER_SEARCH_USER_COUNT_DESCRIPTION

You can add up to 10 users to be host.