CardImage class
建立器類別可簡化將影像新增至卡片。
建構函式
| Card |
建立新的 CardImage。 |
方法
| alt(Text |
要用於輔助功能倒置的影像替代文字。 |
| create(Session, string) | 為指定的 URL 建立新的 CardImage。 |
| tap(ICard |
點選影像時要採取的動作。 |
| to |
傳回影像的 JSON。 |
| url(string) | 要顯示的影像 URL。 |
建構函式詳細資料
CardImage(Session)
方法詳細資料
alt(TextType, any[])
create(Session, string)
為指定的 URL 建立新的 CardImage。
static function create(session: Session, url: string)
參數
- session
- Session
- url
-
string
傳回
tap(ICardAction | IIsCardAction)
點選影像時要採取的動作。
function tap(action: ICardAction | IIsCardAction)
參數
- action