共用方式為


TypingIndicatorStrings interface

可以覆寫的 TypingIndicator 字串。

屬性

delimiter

做為分隔符的字串,用來分隔多個使用者。

範例

<TypingIndicator
 strings={{ delimiter: ' + ' }}
 typingUsers={[
   { userId: 'user1', displayName: 'Claire' },
   { userId: 'user2', displayName: 'Chris' },
   { userId: 'user3', displayName: 'Jill' }
 ]}
/>

會是 '克萊爾 + 克裡斯 + 吉爾正在鍵入...'

multipleUsers

當多個使用者輸入時要使用的字串範本。 佔位元:[使用者]。

範例

<TypingIndicator
 strings={{ multipleUsers: '{users} are typing...' }}
 typingUsers={[
   { userId: 'user1', displayName: 'Claire' },
   { userId: 'user2', displayName: 'Christopher' }
 ]}
/>

會是 '克萊爾, 克裡斯正在鍵入...'

multipleUsersAbbreviateMany

當多個使用者以另一個使用者縮寫輸入時使用的字串範本。 占位元:[users, numOthers]。

範例

<TypingIndicator
 strings={{ multipleUsersAbbreviateMany: '{users} and {numOthers} others are typing...' }}
 typingUsers={[
   { userId: 'user1', displayName: 'Claire Romanov' },
   { userId: 'user2', displayName: 'Christopher Rutherford' },
   { userId: 'user3', displayName: 'Jill Vernblom' }
 ]}
/>

會是 '克萊爾羅曼諾夫和另外 2 個正在鍵入...'

multipleUsersAbbreviateOne

當多個使用者以另一個使用者縮寫輸入時使用的字串範本。 佔位元:[使用者]。

範例

<TypingIndicator
strings={{ multipleUsersAbbreviateOne: '{users} and 1 other are typing...' }}
typingUsers={[
{ userId: 'user1', displayName: 'Claire Romanov' },
{ userId: 'user2', displayName: 'Christopher Rutherford' }
]}
/>

會是 '克萊爾羅曼諾夫和其他 1 個正在鍵入...'

singleUser

當一位使用者輸入時要使用的字串範本。 佔位元:[user]。

範例

<TypingIndicator
 strings={{ multipleUsersAbbreviateOne: '{users} is typing...' }}
 typingUsers={[{ userId: 'user1', displayName: 'Claire' }]}
/>

會是 '克萊爾正在鍵入...'

屬性詳細資料

delimiter

做為分隔符的字串,用來分隔多個使用者。

範例

<TypingIndicator
 strings={{ delimiter: ' + ' }}
 typingUsers={[
   { userId: 'user1', displayName: 'Claire' },
   { userId: 'user2', displayName: 'Chris' },
   { userId: 'user3', displayName: 'Jill' }
 ]}
/>

會是 '克萊爾 + 克裡斯 + 吉爾正在鍵入...'

delimiter: string

屬性值

string

multipleUsers

當多個使用者輸入時要使用的字串範本。 佔位元:[使用者]。

範例

<TypingIndicator
 strings={{ multipleUsers: '{users} are typing...' }}
 typingUsers={[
   { userId: 'user1', displayName: 'Claire' },
   { userId: 'user2', displayName: 'Christopher' }
 ]}
/>

會是 '克萊爾, 克裡斯正在鍵入...'

multipleUsers: string

屬性值

string

multipleUsersAbbreviateMany

當多個使用者以另一個使用者縮寫輸入時使用的字串範本。 占位元:[users, numOthers]。

範例

<TypingIndicator
 strings={{ multipleUsersAbbreviateMany: '{users} and {numOthers} others are typing...' }}
 typingUsers={[
   { userId: 'user1', displayName: 'Claire Romanov' },
   { userId: 'user2', displayName: 'Christopher Rutherford' },
   { userId: 'user3', displayName: 'Jill Vernblom' }
 ]}
/>

會是 '克萊爾羅曼諾夫和另外 2 個正在鍵入...'

multipleUsersAbbreviateMany: string

屬性值

string

multipleUsersAbbreviateOne

當多個使用者以另一個使用者縮寫輸入時使用的字串範本。 佔位元:[使用者]。

範例

<TypingIndicator
strings={{ multipleUsersAbbreviateOne: '{users} and 1 other are typing...' }}
typingUsers={[
{ userId: 'user1', displayName: 'Claire Romanov' },
{ userId: 'user2', displayName: 'Christopher Rutherford' }
]}
/>

會是 '克萊爾羅曼諾夫和其他 1 個正在鍵入...'

multipleUsersAbbreviateOne: string

屬性值

string

singleUser

當一位使用者輸入時要使用的字串範本。 佔位元:[user]。

範例

<TypingIndicator
 strings={{ multipleUsersAbbreviateOne: '{users} is typing...' }}
 typingUsers={[{ userId: 'user1', displayName: 'Claire' }]}
/>

會是 '克萊爾正在鍵入...'

singleUser: string

屬性值

string