Home Manual Reference Source Repository
import {TemplateButtons} from '@3846masa/linebot/lib/LineTemplates'
public class | source

TemplateButtons

Extends:

TemplateComponent → TemplateButtons

See:

Constructor Summary

Public Constructor
public

constructor(params: Object)

Member Summary

Public Members
public

Action when tapped (Max: 4)

public

Message text (Max: 160 chars (no image, no title) / 60 chars)

public

Image URL (JPEG or PNG / HTTPS / 1:1.51)

public

Title (Max: 40 chars)

Inherited Summary

From class TemplateComponent
public

Identifier for the type of template.

Public Constructors

public constructor(params: Object) source

Params:

NameTypeAttributeDescription
params Object
params.thumbnailImageUrl string
  • optional

Image URL (JPEG or PNG / HTTPS / 1:1.51)

params.title string
  • optional

Title (Max: 40 chars)

params.text string

Message text (Max: 160 chars (no image, no title) / 60 chars)

params.actions TemplateAction[] | any[]

Action when tapped (Max: 4)

Public Members

public actions: TemplateAction[] source

Action when tapped (Max: 4)

public text: string source

Message text (Max: 160 chars (no image, no title) / 60 chars)

public thumbnailImageUrl: string source

Image URL (JPEG or PNG / HTTPS / 1:1.51)

public title: string source

Title (Max: 40 chars)