Classes

ButtonTemplateBaseTemplate

Helps with creating of button template Instance of button template is returned by {Responder}

GenericTemplateButtonTemplate

Generic template utility

ReceiptTemplateBaseTemplate

Provides fluent interface to make nice Receipts Instance of button template is returned by {Responder}

 

ButtonTemplate ⇐ BaseTemplate

Helps with creating of button template Instance of button template is returned by {Responder}

Kind: global class
Extends: BaseTemplate

 

buttonTemplate.urlButton(title, linkUrl, hasExtension, [webviewHeight]) ⇒ this

Adds button. When hasExtension is set to true, url will contain hash like: #token=foo&senderId=23344

Kind: instance method of ButtonTemplate
Params

  • title string - button text
  • linkUrl string - button url
  • hasExtension boolean = false - includes token in url
  • [webviewHeight] string = null - compact|tall|full
 

buttonTemplate.postBackButton(title, action, [data]) ⇒ this

Adds button, which makes another action

Kind: instance method of ButtonTemplate
Params

  • title string - Button title
  • action string - Button action (can be absolute or relative)
  • [data] Object = {} - Action data
 

buttonTemplate.shareButton() ⇒ this

Kind: instance method of ButtonTemplate

 

GenericTemplate ⇐ ButtonTemplate

Generic template utility

Kind: global class
Extends: ButtonTemplate

 

genericTemplate.addElement(title, [subtitle], [dontTranslate]) ⇒ this

Adds element to generic template

Kind: instance method of GenericTemplate
Params

  • title string
  • [subtitle] string = null
  • [dontTranslate] boolean = false
 

genericTemplate.setElementActionShare() ⇒ this

Sets url of recently added element

Kind: instance method of GenericTemplate

 

genericTemplate.setElementActionPostback(action, [data]) ⇒ this

Sets url of recently added element

Kind: instance method of GenericTemplate
Params

  • action string - Button action (can be absolute or relative)
  • [data] Object = {} - Action data
 

genericTemplate.setElementImage(image) ⇒ this

Sets image of recently added element

Kind: instance method of GenericTemplate
Params

  • image string
 

genericTemplate.setElementAction(url, hasExtension, [webviewHeight])

Sets default action of recently added element

Kind: instance method of GenericTemplate
Params

  • url string - button url
  • hasExtension boolean = false - includes token in url
  • [webviewHeight] string = null - compact|tall|full
 

genericTemplate.urlButton(title, linkUrl, hasExtension, [webviewHeight]) ⇒ this

Adds button. When hasExtension is set to true, url will contain hash like: #token=foo&senderId=23344

Kind: instance method of GenericTemplate
Overrides: urlButton
Params

  • title string - button text
  • linkUrl string - button url
  • hasExtension boolean = false - includes token in url
  • [webviewHeight] string = null - compact|tall|full
 

genericTemplate.postBackButton(title, action, [data]) ⇒ this

Adds button, which makes another action

Kind: instance method of GenericTemplate
Overrides: postBackButton
Params

  • title string - Button title
  • action string - Button action (can be absolute or relative)
  • [data] Object = {} - Action data
 

genericTemplate.shareButton() ⇒ this

Kind: instance method of GenericTemplate
Overrides: shareButton

 

ReceiptTemplate ⇐ BaseTemplate

Provides fluent interface to make nice Receipts Instance of button template is returned by {Responder}

Kind: global class
Extends: BaseTemplate

 

receiptTemplate.addElement(title, [price], [quantity], [image], [subtitle]) ⇒ this

Adds item to receipt

Kind: instance method of ReceiptTemplate
Params

  • title string
  • [price] number = 0 - a item price
  • [quantity] number = - amount of items
  • [image] string = null - image of item
  • [subtitle] string = null - optional subtitle

results matching ""

    No results matching ""